You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enable greater control over Tabs. Reach Tabs has prop index for setting index of currently selected tab. This will enable user to control Tabs component from outside of it.
Current behaviour
For tabs control Tabs component only has defaultIndex prop
Wanted behaviour
Tabs component has two additional props that are not required, index and onTabChange that will be passed to Reach Tabs component. There can even be a Hook useTabs that will return currentIndex, function for changing index and a hook that can be passed to Tabs component. hook would contain index and onTabChange which means that useTabs hook would also handle manual tab index management
The text was updated successfully, but these errors were encountered:
Basic information
Enhancement description
Enable greater control over Tabs. Reach Tabs has prop
index
for setting index of currently selected tab. This will enable user to control Tabs component from outside of it.Current behaviour
For tabs control Tabs component only has
defaultIndex
propWanted behaviour
Tabs component has two additional props that are not required,
index
andonTabChange
that will be passed to Reach Tabs component. There can even be a HookuseTabs
that will returncurrentIndex
, function for changing index and a hook that can be passed to Tabs component.hook
would containindex
andonTabChange
which means thatuseTabs
hook would also handle manual tab index managementThe text was updated successfully, but these errors were encountered: