ortaui
  1. Components
  2. 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/tabs

Examples#

Default#

Change your name and email address.

With a disabled tab#

API reference#

PropTypeDefaultDescription
surface"default" | "raised"autoLook 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 / defaultValuestring-On Tabs. The active tab.
onValueChange(value) => void-On Tabs. Called when the active tab changes.
activateOnFocusbooleantrueOn TabsList. Arrow keys activate the focused tab, which moves the highlight.
valuestring-On TabsTrigger and TabsContent: links the two.