Brand Guide

Components

Segmented control

Switches between a few views or values of one setting.

Default

Items hug their labels. Hover an item and its label steps up to foreground; tab in and use the arrow keys to move between items.

Full width

fullWidth fills the container and splits the track evenly, as in a list filter.

Disabled

The whole control dims to 50% and the active item keeps its place.

Best practices

  • Use a segmented control to switch a view or a setting, not to answer a question. For answers, use chips or radios.
  • An option that is not on takes a faint tint when pointed at, lighter than the raised pill.
  • It is the one control where selected is not primary: the active item is a raised card pill on a muted track. In dark it is an accent fill with no shadow.
  • One item is always on. Pressing the active item again does not clear it. The control is always controlled, with value and onValueChange.
  • When each option has its own panel of content, use tabs; their pill variant shares the look.
  • Give the control an aria-label that names what it switches.