Wrapper
The TabGroup component wrapper.
This is a compound component.
API
This component extends the native <div> API. That's why the className prop is not included in the table.
Props
Type
Required
children
ReactNode
β
selectedTab
string
β
defaultSelectedTab
string
β
isFlex
boolean
β
variant
'contained' | 'underlined'
β
children
The children in this case, because it is a compound component, should be the ones provided by this design system.
selectedTab
The selectedTab passed directly as a props when using the controlled approach of the component.
defaultSelectedTab
The tab that will load when the component renders. This should be used when using an uncontrolled approach of the component.
Last updated