Create a better implementation for the Tabs component #16
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
refactor
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: pantheon/hestia#16
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Currently we give the Tabs component a list of strings to use as tab labels and then bind the index value of the currently active tab.
Can we see if its possible to implement tabs to use sub-components like so...
To achieve this, the Tabs component would have to attach an onclick to its children so that they can set the 'selected' value to their index, the 'active' prop would also need to be set which is just a comparison of the tabs index to the current 'selected' value.
The implementation using DaisyUI is defined in these docs:
https://daisyui.com/components/tab/#radio-tab-lifted--tab-content
Can probably just adopt melt-ui
https://www.melt-ui.com/docs/builders/tabs