Skip to content

Switch ​

Switches toggle the selection of an item on or off. Switches are the best way to let users adjust settings.

Overview · Specs · Guidelines · Accessibility

Switch

  • Use switches (not radio buttons) if the items in a list can be independently controlled
  • Switches are the best way to let people adjust settings
  • Make sure the switch’s selection (on or off) is visible at a glance

A switch in two states, off and on.

Switches can be toggled on and off

Availability & resources ​

TypeResourceStatus
DesignDesign Kit (Figma)Available
ImplementationFlutterAvailable
ImplementationJetpack ComposeAvailable
ImplementationAndroid Views (MDC-Android)Available
ImplementationWebAvailable

Differences from M2 ​

  • Accessibility: Visual presentation is more accessible
  • Color: New color mappings meet Material's non-text-contrast requirements in addition to compatibility with dynamic color
  • Icons: Ability to have an optional icon within the switch handle
  • Layout: Track is taller and wider

M2 switches in off and on states.

M2: Switches have a circular handle that extends beyond the edge of the track

M3 switch shown toggled off and toggled on. When switched on, it has a checkmark icon.

M3: Switches have a taller and wider track, new color mappings, and the ability to show an icon in the handle

Unofficial offline mirror. Content © Google, licensed under CC BY 4.0.