Skip to main content

Anatomy

The Switch consists of three primary elements that work together to toggle between two states.
Switch
anatomy
  1. Unselected
  2. Selected
  3. Label

Options

The Switch supports label and selection configurations to accommodate various toggle scenarios.

Label

Switch options
label
Generally, Switches should have labels that clearly describe the intent of the Switch. A Switch can also have no label when the context of what it turns on or off can be clearly understood.

Selection

Switch selection
option
Switches can be selected or unselected. If a Switch is used to represent multiple mixed values, it should be set to unselected.

Behavior

The Switch responds to user interaction with distinct visual states for different selection states.

Visual States

Default

Switch state
default

Selected

Switch state
selected

Disabled

Switch state
disabled

Usage Guidelines

Use the Switch when allowing users to choose between two mutually exclusive options with immediate results.

Alternatives

Switch vs Checkbox

Switches are used for making a selection between two mutually exclusive options and have an immediate effect. Checkboxes allow users to make zero to many choices from available options and changes are not immediate.

Switch vs Radio

Where the Switch is used to toggle between two options, Radio buttons can be used to choose from two or more options. Additionally, a Switch is primarily used for enabling or disabling features or settings and has an immediate effect. Radio buttons are common in form layouts when selecting between multiple options.

Switch vs Checkbox vs Radio

Radio buttons are used to select a single option from a set of mutually exclusive options. Checkboxes are best used to make zero to many selections from available options.
CheckboxSwitchRadio
When is the selection executed?After a user clicks a submit buttonImmediatelyAfter a user clicks a submit button
How many options are available?1 or more12 or more
Must an option be reducible to an on or off context?No, it can be other things.YesNo, it can be other things.
If I had a group of this UI, what is the relation of each item in the group?Independent of each otherIndependent of each otherMutually exclusive
Indeterminate state possible?YesNoNo

How to Use

Labels

Switch labels should describe the effect when the Switch is “on,” e.g., “Enable notifications”. The text label for a Switch should never change based on the state of the Switch. For example, you would not change a label from “Enabled” to “Disabled” or vice versa. Additionally, a Switch can also have no label when the context of what it turns on or off can be clearly understood. A tooltip can also be applied to describe the toggle’s current state.
Switch labels
do
Do
Switch labels
don't
Don’t

Immediate Effect

Switches should have an immediate effect when its state changes and not require a save action.
Switch immediate effect
do
Do
Switch immediate effect
don't
Don’t

Form usage

Assuming that your Switch still matches the pattern of an off/on, it can be used in a Form to disclose additional options.
Switch form
usage

Content

Content within the Switch should clearly communicate the effect when the Switch is turned on.

Give a descriptive, direct label

The toggle switch label should describe what the control does when it is turned on. Rule of thumb: say the label name and add an “on/off”. Use sentence case (capitalize only the first word and proper nouns) so control labels are easy to scan. Do not use periods for short phrases or single sentences.
Switch label
do
Do
Switch label
don't
Don’t

Positive label wording

Labels in general should be positive. Since the label and Switch are generally thought of as turning something on, labels should reinforce this. Examples include: “Show”, “Hide”, “Activate”, “Group [by]”, “Track”, and “Activate”. Negative labeling can be used with caution, if it makes sense to a user to perform a negative action.
Switch positive label
do
Do
Switch positive label
don't
Don’t

Give the user the information they need to make an informed decision

When a toggle switch label does not provide sufficient information and context for users to make an informed decision about the option, use inline help. Inline help is the best option for this situation because it requires no user interaction and is always visible. Keep inline help to 1-2 sentences. Use the content guidelines for inline help. Avoid using a tooltip to communicate this kind of information about an option. It’s an additional step for users to mouse over the tooltip to reveal its information, and users can’t refer to the tooltip content and take action at the same time.
Switch informed
decision

Keyboard Interaction

Users can navigate the Switch using standard keyboard controls.
KeyDescription
SpaceEnables or disables the selected Switch

Accessibility

The label should clearly describe the Switch intent

Switch Labels

Switch labels
don't
Don’t
The label for a Switch should not change as the state of the Switch changes. Refer to W3C’s Switch pattern for more details. For more guidance on form field labels and context, see input field context association best practices.
Last modified on January 23, 2026