Tabs
A set of layered sections of content that can be navigated through tabs.Import
Anatomy
Tabs.Root
The root container for the tabs component.Visual style variant of the tabs
stroke: Underline indicator below tabspill: Pill-shaped background indicatorpill-emphasized: Pill-shaped background with accent color
Size of the tabs
The value of the tab that should be active by default
The controlled value of the active tab
Callback fired when the active tab changes
The orientation of the tabs
Whether tabs are activated automatically on focus or require explicit activation
Explicit escape hatch for intentional structural overrides
Data Attributes
data-slot="tabs"data-variant: Current variant (stroke,pill,pill-emphasized)data-size: Current size (s,m)
Tabs.List
Container for the tab triggers and indicator.Explicit escape hatch for intentional structural overrides
Data Attributes
data-slot="tabs-list"
Tabs.Trigger
A button that activates a tab panel.Unique identifier for this tab
Icon displayed before the tab label
Whether the tab is disabled
Explicit escape hatch for intentional structural overrides
Data Attributes
data-slot="tabs-trigger"data-active: Present when the tab is activedata-disabled: Present when the tab is disabled
Tabs.Indicator
Visual indicator showing the active tab.Explicit escape hatch for intentional structural overrides
Data Attributes
data-slot="tabs-indicator"
Tabs.Content
Container for the content of a tab panel.The value of the tab that this content is associated with
Explicit escape hatch for intentional structural overrides
Data Attributes
data-slot="tabs-content"