Wrapper

The TabGroup component wrapper.

circle-info

This is a compound component.

API

This component extends the native <div>arrow-up-right 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'

❌

chevron-rightchildrenhashtag

The children in this case, because it is a compound component, should be the ones provided by this design system.

chevron-rightselectedTabhashtag

The selectedTab passed directly as a props when using the controlled approach of the component.

chevron-rightdefaultSelectedTabhashtag

The tab that will load when the component renders. This should be used when using an uncontrolled approach of the component.

chevron-rightisFlexhashtag

This prop changes the tabs styles making it so them take the 100% of the available container width.

chevron-rightvarianthashtag

Prop used to change the way selectedTabs are presented.

Last updated