Tabs
Break content into multiple panes to reduce cognitive load.
You can use the Tabs
and TabItem
components to create tabbed interfaces. A label
prop must be provided to each TabItem
which will be used to display the label. Whichever tab should be active by default is specified by the value
prop on the Tabs
component.
Usage
Examples
Simple Text
This is the first tab's content.
This is the second tab's content.
Markdown Syntax
Note
If you plan to use markdown-specific syntax in your tabs, ensure you include a space between the component and the content in your Markdown file.
Props
Tabs
items
type: string[]
The tab items to display.
required
value
type: string
The label of the tab to be active by default.
TabItem
value
type: string
The value that identifies the tab. This value should map to an item within the items
prop passed to the Tabs
component.
required