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
numberControls the active Tab and TabPanel.
children
ReactReactNodeUsually accepts TabList and TabPanel components.
defaultActiveIndex
numberUsed in place of activeIndex for uncontrolled components.
onChange
FunctionCalled when the active tab should change.
returns nextActiveIndex