Brand Guide

Components

Tabs

Switches between panels of content, with an indicator that slides to the active tab.

Underline

The default, for a page's main sections.

Staff backend engineer on the payments team. £140k to £165k, hybrid in London.

Pill

Two or three tabs in a smaller space, such as a card header or a dialog.

Your CV as a hiring team sees it.

Secondary

A row of tabs inside a page that already has its own.

Eight years of backend work, the last three on payments. Meets the office days.

Controlled

Hold the tab in state with value and onValueChange when something outside the tab list also changes it.

Your CV as a hiring team sees it.

With a disabled tab

Three new roles match your profile.

Best practices

  • Use tabs when each option has its own panel of content. To switch a view or a setting with no panels, use a segmented control, which shares the pill look.
  • Three variants, set on the list with variant. Pick by where the tabs sit, not by how many there are:
    • underline, the default: a page's main sections, such as a candidate's tabs under their name. A row along a hairline the width of its container, with a line under the active tab. Let the line run the page's full width, and inset the list by the page's gutter, so the first word lines up with the heading above. A tab is its word, with no padding either side: the line under it is exactly the word's width, and pointing at it darkens the word with no tint.
    • pill: two or three tabs in a smaller space, such as a card header or a dialog. A muted track with the active tab raised on it, as the segmented control has.
    • secondary: a second row of tabs inside a page that already has one. No track: the active tab is a muted block with a navigation item's corners (rounded-md).
  • One variant per screen: tabs inside tabs take a different one from the tabs around them.
  • The active tab's text is the foreground colour; the rest are muted until pointed at, when they take a faint tint.
  • Arrow keys choose a tab as they move between them.
  • onValueChange reports only a tab someone chose, not one the tabs fall back to by themselves.