Tabs
View Source
A single content area with multiple panels, each associated with a header in a list.
Tab 1
Tab 2
Tab 3
Tab 4
Content for tab 1
Tab 1
Tab 2
Tab 3
Tab 4
Content for tab 1
Props
Themeable
Accepts StackView props.
Use the tabs
key in ThemeProvider
to customize the default properties of this component.
activeIndex
number
Controls the active Tab
and TabPanel
.
children
ReactReactNode
Usually accepts TabList
and TabPanel
components.
defaultActiveIndex
number
Used in place of activeIndex
for uncontrolled components.
onChange
Function
Called when the active tab should change.
returns nextActiveIndex