Tabs
Tabbed interface for organizing content into panels, with full keyboard navigation.
Example
Overview
Tabs organise content into separate views where only one view is visible at a time. Each tab activates its associated panel while hiding the others.
This component follows the WAI-ARIA Tabs pattern for full accessibility support.
Features
- Click or keyboard navigation to switch tabs
- Arrow keys move between tabs with wrap-around
- Home and End keys jump to first and last tab
- Screen reader announcements via live region
- ARIA attributes for accessible tab/panel relationships
Settings
Tabs adapt to light and dark themes automatically via design tokens. The active tab indicator uses the accent color for clear visual distinction.
CSS classes
| Class | Description |
|---|---|
l-ui-tabs__list |
Container for tab buttons (use with role="tablist") |
l-ui-tabs__tab |
Inactive tab button |
l-ui-tabs__tab--active |
Active tab button with underline indicator |
l-ui-tabs__panel |
Tab panel content area |