Skip to main content

Figma Storybook

Tabs

Organises related content into selectable panels within a single view. Use to reduce cognitive load when content can be meaningfully divided into discrete sections. Don't use when all content should be visible simultaneously.

Figma Storybook Docs

Description

What it does

Tabs organise related content into distinct sections that share a single view. Only one panel is visible at a time; the user selects which to show.

Where it appears

Component detail pages, settings screens, profile views, and any context where discrete categories of content exist at the same level of the hierarchy.

Why it exists

Showing all content simultaneously creates cognitive overload. Tabs allow users to focus on one area at a time while remaining aware that more exists nearby.

Tabs change the visible content within a page; they do not navigate between pages. For navigation, use the sidebar or breadcrumb components.

Anatomy

PartRequired?Notes
Tab list Required The container for all tab controls. Receives role="tablist".
Active tab Required The currently selected tab. Indicated by a visual accent (underline or highlight) and aria-selected="true".
Inactive tab Required Unselected tabs. Receive aria-selected="false" and tabindex="-1" so they are not in the default tab order.
Tab panel Required The content region associated with the active tab. Receives role="tabpanel" and is linked to its tab via aria-controls / aria-labelledby.

Usage guidelines

When to use

  • Content divides cleanly into 2–7 parallel sections at the same hierarchy level.
  • Users are likely to focus on one section at a time rather than needing to compare across them.
  • The tab labels can be short, distinct, and self-explanatory without additional context.

When not to use

  • When content should be compared across sections — keep it visible simultaneously.
  • When sections form a sequence — use a stepper or wizard pattern instead.
  • When there are more than 7 tabs — use a sidebar or dropdown navigation.
  • For page-level navigation — tabs are for in-page content switching only.

Do / Don't

Do

Keep tab labels short — one or two words. "Overview", "Activity", "Settings". Users scan tabs, not read them.

Don't

Don't put form elements that affect the whole page inside one tab. Actions that span tabs should live outside the tab component.

Do

Make the default tab the most commonly needed one. Don't default to a tab that's empty or rarely relevant.

Don't

Don't use tabs to create wizard-like flows. If completing step 2 depends on step 1, use a stepper.

Was this page helpful?

Updated 9 September 2026