Tabs
Splits related content into panels, and shows one panel at a time.
components/ui/tabs.tsx
Preview
Code
Account
Password
Team
Account settings.
Installation
npx betterone-ds add tabsProps
| Prop | Type | Default |
|---|---|---|
| defaultSelectedKey | string | — |
| selectedKey | string | — |
| TabsList variant | "default" | "line" | "default" |
Accessibility
- Give the tab list an aria-label that describes what the tabs contain.
- Each trigger needs an id that matches its panel.

