Closed andreialecu closed 3 years ago
This is an alternative to #90 that simplifies things further.
containerRef and refMap are no longer needed, the tab names are passed to createCollapsibleTabs instead.
containerRef
refMap
createCollapsibleTabs
I'm not sure if this limits things in any way.
Open for discussion.
With this PR only const { useTabsContext, ...Tabs } = createCollapsibleTabs(TabNames) is needed.
const { useTabsContext, ...Tabs } = createCollapsibleTabs(TabNames)
This would be a breaking change btw.
I like #93 better btw.
This is great too, but I like #93 better too!
This is an alternative to #90 that simplifies things further.
containerRef
andrefMap
are no longer needed, the tab names are passed tocreateCollapsibleTabs
instead.I'm not sure if this limits things in any way.
Open for discussion.
With this PR only
const { useTabsContext, ...Tabs } = createCollapsibleTabs(TabNames)
is needed.