Primary (animated pill)
Overview content
Settings content
Billing content
Secondary (animated underline)
Account settings
Security settings
Notification preferences
API Reference
Props mirror Base UI React where applicable, adapted for Svelte 5. Native HTML attributes for the rendered element are also accepted unless noted.
Tabs.Root
Extends div HTML attributes.
| Property | Type | Default | Description |
|---|---|---|---|
value | string | undefined | — | Controlled value. |
defaultValue | string | — | Uncontrolled initial value. |
onValueChange | ((value: string) => void) | undefined | — | Event handler called when the value changes. |
orientation | TabsOrientation | 'horizontal' | — |
children | Snippet<[{ value: string; orientation: TabsOrientation }]> | — | Content rendered inside the part. |
| Data attribute | Description |
|---|---|
data-orientation | The orientation of the component. |
Tabs.Indicator
Extends span HTML attributes.
| Property | Type | Default | Description |
|---|---|---|---|
children | Snippet | — | Content rendered inside the part. |
| Data attribute | Description |
|---|---|
data-orientation | The orientation of the component. |
Tabs.List
Extends div HTML attributes.
| Property | Type | Default | Description |
|---|---|---|---|
children | Snippet | — | Content rendered inside the part. |
| Data attribute | Description |
|---|---|
data-orientation | The orientation of the component. |
Tabs.Panel
Extends div HTML attributes.
| Property | Type | Default | Description |
|---|---|---|---|
value | string | — | Controlled value. |
children | Snippet | — | Content rendered inside the part. |
| Data attribute | Description |
|---|---|
data-orientation | The orientation of the component. |
data-selected | Present when the item is selected. |
Tabs.Tab
Extends button HTML attributes.
| Property | Type | Default | Description |
|---|---|---|---|
value | string | — | Controlled value. |
disabled | boolean | false | Whether the control ignores user interaction. |
children | Snippet<[{ selected: boolean; disabled: boolean }]> | — | Content rendered inside the part. |
| Data attribute | Description |
|---|---|
data-disabled | Present when the part is disabled. |
data-orientation | The orientation of the component. |
data-selected | Present when the item is selected. |