Skip to content
Design System
GitHub

On is the primary colour, off a neutral track; takes effect immediately.

Roles

What a screen reader is told each part is, measured in the examples on the Overview tab.

  • switch
  • Follows the WAI-ARIA pattern Switch.

Keyboard

KeysAction
EnterSpaceTurn on or off

Colour contrast

Computed from the shipped theme for the colours this component uses, on page and card backgrounds; the lower of the two is shown. WCAG 2.2 AA.