Tabs are used to organize content by grouping similar information on the same page.
View source codeReactNode[]
The children of the element. Should include TabList and TabPanels elements.
number
Make a tab initially active.
Default: 0(index: number) => void
Returns the active tab's index whenever the user changes tabs
number
To control tabs' state
ReactNode[]
The Tab items to display
string
className for the element
boolean
Whether the TabList should fit the container
Default: falseReactNode
The content to display as Tab
string
className for the element
ReactNode[]
The tab panels to display