[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
3 Replies
fixed
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"
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