Skip to content

Switch usage guidelines

Switches are used for binary actions that take effect immediately. They are typically used for on/off states where the change is applied instantly without requiring a submit action.

  • When a user needs to choose between two binary options.
  • When the change should be applied immediately.
  • When a setting needs to be quickly toggled on or off.
  • When representing a persistent preference or setting.
  • When the choices do not represent an on/off state.
  • When the change requires an explicit save action.

In the cases above, use checkboxes for multiple selection or radio buttons for single selection.

  • Switches can be placed inside content areas, such as settings pages.
  • Position switches close to the content they affect, top-right of a page or section.
  • Multiple switches can be grouped vertically for related settings.
  • The label of the switch can be positioned to the start of, end of, or above the switch control.
  • The description is always placed below the label and the switch control.
  • Clearly describe what the switch controls.
  • Use sentence case for switch labels.
  • Do not include the words “on” or “off” in the label. The label must remain the same regardless of the switch state.
  • End the description with a period or equivalent punctuation mark. This helps screen reader users understand where the description ends, and it improves readability for all users.
Do
Don't
  • Switch should apply changes instantly, with no “Submit” button required.
  • Pressing the switch toggles between the “on” and “off” state.
  • Pressing the label has the same effect as pressing the switch.