Back to Tabs
View full API on Tabs
Tabs
Keyboard behavior
Three tabs for exploring arrow-key navigation.
Focus the tab list, then use Arrow Left/Right to move between tabs and Home/End to jump to the first or last tab. Press Enter to activate the focused tab.
Panel one.
API
| Prop | Type | Default | Description |
|---|---|---|---|
| tabs | TabItem[] | — | Tab definitions with title, content, disabled, icon, and badge. |
| activeTab / defaultActiveTab | number | — | Controlled / uncontrolled active tab index. |
| onTabChange | (index: number) => void | — | Fires when the active tab changes. |
| variant | "underline" | "pill" | "outline" | pill | Visual style for the tab strip. |
| orientation | "horizontal" | "vertical" | horizontal | Tab list layout; switches arrow-key axis. |
| fullHeader | boolean | false | Stretch tabs to fill the header width. |
| firstLastNavControl | boolean | false | Show jump-to-first/last tab buttons. |
| className | string | — | Merged onto the root tabs container. |
| id (TabItem) | string | — | Optional stable id for the tab panel. |
| iconClassName (TabItem) | string | — | Extra classes on the tab icon. |
| badgeVariant (TabItem) | Badge variant | — | Visual style for the tab count badge. |