Tabs
Layered sections of content displayed one at a time. Writing direction is passed to Radix so keyboard arrows flip in RTL; vertical line tabs place the active indicator on the inline-end edge.
Basic
Switch between layered panels with a horizontal tab list.
Installation
CLI
Composition
structure
Usage
tabs.tsx
Direction
Toggle LTR/RTL in the preview — horizontal tabs reverse order with the writing direction, and vertical line indicators stay on the content side via after:-end-1.
direction.tsx
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| defaultValue | string | — | On `Tabs` — initially selected tab value. |
| value | string | — | On `Tabs` — controlled selected value. |
| orientation | "horizontal" · "vertical" | "horizontal" | Layout of the tab list. |
| variant | "default" · "line" | "default" | On `TabsList` — pill vs underline style. |
| dir | "ltr" · "rtl" | inherited | Writing direction. Defaults from `useDirection` / `<html dir>`. |
| disabled | boolean | false | On `TabsTrigger` — disable a tab. |