Actions & Navigation

Tabs

Tabs organize content into multiple sections and allow users to navigate between them.

Tabs organize content into multiple sections and allow users to navigate between them.

Pill#

Use variant="pill" for a segmented control with the active tab raised on a muted track.

Disabled#

Component props#

Tabs#

NameTypeDescription
selectedKeystringControlled selected tab key
defaultSelectedKeystringDefault selected tab key
onSelectionChange(key: string) => voidCalled when selection changes

TabList#

NameTypeDescription
variant'line' | 'pill'line underlines the active tab with an animated indicator; pill renders a segmented control (default: line)

Tab#

NameTypeDescription
idstringUnique tab identifier (required)
hrefstringMakes the tab a link
isDisabledbooleanDisables the tab