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