[Tailwind] How to Implement Tabs with SubTabs? (check attachment)

The attached image is what I want to do i tried some stuff but not sure how to do it this is so far what I've done : https://codepen.io/Ant-Riddle/pen/yLWbVVB?editors=1000 This is made with Tailwind and DaisyUI I want to know how I can go about making main tabs and sub tabs like the attached picture
No description
3 Replies
riddle
riddleOP7mo ago
fixed
No description
Rowe2ry
Rowe2ry7mo ago
Looks great. I was about to ask what framework you were using to handle your scripts as changing what the secondary menu says dependent on the selection made at the top level sounds like a programmatic thing unless both the dry and wet wipes have the same size options. I do conditional rendering based on the value of an enumerable variable set by click events on the "level 1 menu"
Chris Bolson
Chris Bolson7mo ago
Just for fun, and not very practical but I put together a quick Tailwind only version, ie. no JavaScript to switch between tabs and content. https://codepen.io/cbolson/pen/pomPZoy
Want results from more Discord servers?
Add your server