FX · Components
Rad UI Tabs with an indicator that slides between triggers and content that fades in.
Arrow keys move between tabs. The indicator just follows.
- Built on Rad UI Tabs: tablist/tab/tabpanel roles, arrow-key navigation and focus management come from the library.
- The indicator is aria-hidden decoration.
- Focus-visible outline is kept on triggers.
- prefers-reduced-motion: reduce (or data-rad-fx-motion="reduce" on an ancestor) snaps the indicator and skips the fade.
| Prop | Type | Default | Description |
|---|---|---|---|
tabs | { value, label, content }[] | — | The tabs. |
defaultValue | string | first tab | Initially selected tab. |
value | string | — | Controlled selected tab. |
onValueChange | (value: string) => void | — | Called when the selection changes. |