Skip to content

Toggle

Binary on/off switch for immediately-applied settings.

Variants

Toggle is a binary on/off switch. Use for settings that take effect immediately — no save required.

VariantPurpose
OffSetting is disabled. Neutral grey track, thumb on the left.
OnSetting is enabled. Brand-filled track, thumb on the right.

Design tokens

TokenValueDescription
toggle/track/off
#aeaeae
Off track colour
toggle/track/off/hover
#a3a3a3
Off track hover
toggle/track/on
#318272
On track colour
toggle/track/on/hover
#226558
On track hover
toggle/track/on/pressed
#15483e
On track pressed
toggle/thumb
#ffffff
Thumb colour
size
40×24
Track dimensions (single size)
thumb-size
20px
Thumb diameter

Guidelines

Do
  • Use for settings that take effect immediately — no save required
  • Label clearly to describe what turns on or off
  • Use positive phrasing: "Enable notifications" not "Disable silence"
  • Show the current state even when disabled
  • Use for binary on/off choices only
Don't
  • Use when the action requires a separate submit step
  • Use as a substitute for a Checkbox in a form
  • Use for destructive or irreversible actions
  • Use for mutually exclusive options — use Radio instead
  • Use in place of a yes/no form field without an explicit save