Skip to content
Design System
GitHub

Toggle

v0.10.0

An on/off button for a layer or option. On is inverted, like a selected segment.

Roles

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

  • button

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.