Resonance Logo

Tabs

Tabs organize content into multiple panels, only one of which is visible at a time, allowing keyboard users to move between tabs with arrow keys and select content with Enter or Space.

Demo

Click any tab label to display its associated content panel. With keyboard focus on the tab list, use the Left and Right arrow keys to move between tabs. Press Tab to move focus into the active panel and interact with its content. Observe how only the active panel is exposed to keyboard navigation.

Content for Tab 1. This panel contains general information.

Focusable link inside panel 1

What to Observe

Anatomy

[Anatomy image placeholder — will be added when assets are available]

  1. Tab list: A container with role="tablist" that groups all tab buttons and establishes the keyboard navigation context.
  2. Tab button: Each tab has role="tab", an aria-selected attribute reflecting its state, and an aria-controls attribute pointing to its associated panel.
  3. Tab panel: A container with role="tabpanel" holding the content for one tab; it has an aria-labelledby attribute pointing back to its controlling tab.
  4. Active indicator: A visual treatment — typically an underline or background change — that distinguishes the selected tab from inactive ones.
  5. Hidden panels: Inactive panels are removed from the visual layout and hidden from the accessibility tree using the hidden attribute or equivalent.

Accessibility Behavior

Common Mistakes

Why This Matters

Tabs are one of the most common patterns for organizing dense content in dashboards, product pages, and settings screens. When implemented without proper roles and keyboard behavior, a screen reader user encounters a set of unlabeled buttons with no indication that they control content panels, and a keyboard user cannot navigate between them predictably. The ARIA tabs pattern is well-documented and widely supported — using it correctly ensures that users relying on assistive technology get the same efficient, structured access to content that sighted mouse users experience.

Accessibility Validation

This component is validated against internal accessibility criteria aligned with WCAG standards, using our internally developed system, Resonance Specs.

To learn more, please contact us.

Code

Reference Implementation