Segmented control

Two to four modes side by side. The white pill springs to the choice.

Specs

Every value is a token from Foundations. The names match Figma and the Flutter file.

Track
48 tall (size/control), bg/control, radius full
Pill
40 tall, 4 inset (inset/segment), bg/inverse
Labels
Moonshot/Label/Control 16/24; selected text/on-inverse, others text/secondary
Motion
spring, bounce .12, 0.4s

Usage

Do

  • Use for 2 to 4 equal modes of the same view.

Don't

  • Don't use it as navigation between screens.
  • Don't put icons and text mixed in one control.

Accessibility

  • role=tablist with tabs; selection follows arrow keys.
  • The whole control shows one focus ring.
  • Focus: a 2px focus/ring 2px outside the shape, for keyboard and switch control only. Targets are 44pt or more.