Tabs

Use Tabs to organize content across multiple panes.

Examples

Full Width

Theme Color

Custom Color

Background Color

Persist Selected Tab to URL

Tabs

Options

Unique Id for this set of tabs. When set, the selected tab is included in the URL so it can be shared.

Options:
string

Color for the active tab. Accepts theme tokens

Options:
Any valid hex, rgb, or hsl string
Default:
base-content

Tabs take up full width of page

Options:
Default:
false

Include background color on active tab. Color is automatically determined based on color prop

Options:
Default:
false

Tab

Options

Required

Label for the tab

Unique Id for this tab. Only needed if 2 tabs have the same label (not recommended).