- Components
- Navigation
Tabs
Pill track with one sliding highlight that rests on the active tab. Arrow keys move focus and activate, so the highlight follows keyboard and pointer.
Installation#
npx shadcn add @ortaui/tabsExamples#
Default#
Change your name and email address.
With a disabled tab#
API reference#
| Prop | Type | Default | Description |
|---|---|---|---|
| surface | "default" | "raised" | auto | Look on a panel. Unset: raised (page fill + border) inside any [data-surface] container. "raised" forces it anywhere; "default" keeps the muted fill even inside a surface. |
| value / defaultValue | string | - | On Tabs. The active tab. |
| onValueChange | (value) => void | - | On Tabs. Called when the active tab changes. |
| activateOnFocus | boolean | true | On TabsList. Arrow keys activate the focused tab, which moves the highlight. |
| value | string | - | On TabsTrigger and TabsContent: links the two. |