Tabs
Tab navigation for switching between content panels. Use the wrapper or compose TabsList/TabsTab/TabsPanel with a raw base-ui Root.
Tabs
base-ui docs ↗Tab navigation for switching between content panels. Each tab can have
an optional icon and can be individually disabled.
| Prop | Type | Default |
|---|---|---|
| items* | TabItem[] | — |
Array of tab definitions to render. | ||
| value | string | — |
Currently active tab value (controlled). | ||
| defaultValue | string | — |
Initially active tab value (uncontrolled). Defaults to the first item. | ||
| onValueChange | ((value: unknown, eventDetails: unknown) => void) | — |
Called when the active tab changes. | ||
| className | string | — |
Styled Parts
base-ui docs ↗Pre-styled wrappers around the corresponding base-ui parts. All base-ui props are forwarded.
CSS Class Names
Available as keys on the TabsStyles object. Each key maps to a hashed CSS module class name at runtime.
listpanelroottab