Tabs
Tab list with an animated indicator and roving focus.
Install this component
Install command hidden until you are signed in with a license.
Live demo
Overview content.
Usage content.
Accessibility content.
Props
| Prop | Type | Description |
|---|---|---|
| tabs | { id; label; content }[] | Tabs and panels. |
| defaultId | string | Initially selected tab. |
| label | string | aria-label of the tab list. |
Accessibility
Keyboard
- Arrow Right / LeftMove to next or previous tab
- Home / EndFirst or last tab
- TabMove from the tab list into the panel
ARIA and semantics
- role=tablist, tab and tabpanel
- aria-selected, aria-controls and aria-labelledby
- Roving tabindex: only the selected tab is in the tab order
Source
Copy the files into your project. Or install with the commands above (they unlock with your license).
The full Tabs source is part of the license.
The live demo is free to try. A license unlocks copy-paste source, installs and exports for every component and pack.
Unlock every icon