Tabs
Tabbed navigation for switching between related content panels. Keyboard accessible with ARIA tablist pattern.
Overview content goes here.
Anatomy
1
2
Panel content
- 1 Tab list — horizontal row of tab buttons with active indicator
- 2 Tab panel — content area associated with the active tab
Options
States
Table of options
| Property | Values | Default |
|---|---|---|
| orientation | horizontal / vertical | horizontal |
| selected | true / false | false |
| disabled | true / false | false |
Keyboard interactions
| Key | Action |
|---|---|
| Tab | Moves focus into/out of the tab list |
| ← / → | Moves between tabs (horizontal) |
| ↑ / ↓ | Moves between tabs (vertical) |
| Enter / Space | Activates the focused tab |
| Home | Moves to first tab |
| End | Moves to last tab |
Accessibility
- Uses
role="tablist",role="tab", androle="tabpanel"ARIA pattern. aria-selectedindicates the active tab.aria-controlslinks each tab to its panel.- Only the selected tab has
tabindex="0"; others havetabindex="-1"for roving focus. aria-orientationcommunicates layout direction to assistive technology.
Design checklist
All color themesWorks across light and dark modes.
Keyboard interactionsFull ARIA tablist pattern.
Design tokensComponent-scoped tokens (
--tabs-*).