Switches are interactive controls used to turn a setting or choice on or off. They’re commonly seen in settings or account configurations.

Also known as: Toggle switch, flip switch, light switch, binary switch, UISwitch (iOS), Switch (Android).

Anatomy

A switch with a label featured with callout A, a description featured with callout B, and a switch control featured with callout C.

A. Label (required): Text indicating the purpose of the switch.
B. Description (optional): Optional text that can be used to describe the label in more detail.
C. Switch control (required): Interactive element used to toggle the switch on or off.

Usage

When to use and when not to use switch
When to use When not to use
For settings that have an on/off or true/false state.To switch between content views. Use a toggle button instead.

In place of a checkbox or radio button.

Best practices

  • Don’t use switches in place of radio buttons or checkboxes, except when two radio buttons are being used for a yes/no, on/off, or true/false choice.
  • Ensure labels are placed closed to the switch control so it’s clear they’re related.
  • Ensure the filled state indicates the switch is in the “on” position.
Switch labeled Automatic saving

Do Ensure changes are applied as soon as the switch is interacted with.

Switch labeled Automatic saving with two buttons labeled Activate and Cancel

Don't Require additional steps before the selection is applied, unless its part of a longer form or settings page.

Switch labeled Notifications

Do Keep labels consistent after users interact with the switch.

Switch labeled Notifications off and a switch below it labeled Notifications on

Don't Change the labels based on the switch state.

Content

  • Use sentence case without punctuation for all labels.
  • Avoid acronyms or jargon.
  • Keep labels short to avoid unnecessary truncation.
  • Phrase labels to describe what the switch will do in the “on” position. For example, toggling to the “on” position should make the statement true.
  • Use full sentences with proper punctuation for descriptions.
  • Limit descriptions to one to two brief sentences.