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
Copy
Edit
Tab 1
Tab 2
Tab 3
Tab 4
Content for tab 1
Copy
Edit
Props
activeIndex
number
Controls the active Tab
and TabPanel
.
defaultActiveIndex
number
Used in place of activeIndex
for uncontrolled components.
onChange
Function
Called when the active tab should change.
returns nextActiveIndex