Toggle
A toggle switches a setting on or off.
Overview
Use a toggle for a setting that has two states, on and off, and that takes effect right away. People don't need to press a save or submit button.
The toggle comes in 2 sizes (small and medium) and 4 states (default, hover, focus, disabled), and it can be on or off. That makes 16 variants in total.
Toggle or checkbox?
Both let people turn something on or off. The difference is when the change happens.
Question | Toggle | Checkbox |
|---|---|---|
When does the change apply? | Right away | When the form is submitted or saved |
What is it for? | A setting, like turning notifications on | A choice in a form, like agreeing to the terms |
Can people pick several in a list? | Each toggle works on its own, and the change is instant | Yes, and they are saved together |

If the choice needs a save button, use a checkbox. If the choice should happen the moment people tap, use a toggle.
Anatomy

Toggle: the track and the round knob that moves from one side to the other.
Label: text next to the toggle that says what the setting is. It is separate text, not part of the toggle.
Description (optional): a line of smaller text under the label for extra detail.
The toggle has no visible text inside it.
Do and Don't
Do

Give every toggle a visible label that names the setting, like “Email notifications”.
Dont

Leave the toggle alone with no text, or use vague labels like “Enable” or “Option 1”
Do

Keep the label the same whether the toggle is on or off, like “Dark mode”
Dont

Change the label when the state changes, like “Turn on dark mode” becoming “Turn off dark mode”.
Do

Word the setting so that “on” means the feature is active, like “Show notifications”
Dont

Use negative wording, like “Disable notifications”, where “on” means off. Double negatives make people stop and think about which way to switch
Do

When a toggle is unavailable, show it as disabled and explain why, like “Requires a paid plan”
Dont

Grey it out with no explanation. People will think it is broken if they can’t tell why it doesn’t respond
Do

Apply the change as soon as the toggle is switched, and show brief confirmation if the result isn’t obvious
Dont

Make people press a Save button after switching it. A toggle works like a physical switch. Needing a second step breaks that expectation. For forms that need a Save button, use a checkbox.
Sizes
The visible toggle is 20 tall for small and 28 tall for medium. The touch area is bigger than what you see. See the rules below.
Small
When to use: dense lists of settings.
When not to use: when the toggle is the main thing on the screen.
Medium
When to use: when the toggle needs more presence, or when people use it often.
When not to use: in tight spaces.
States
Default
The toggle is ready to use.

Hover
The pointer is over the toggle. This is shown on web only.

Focus
A ring appears around the toggle when someone reaches it with a keyboard. This is shown on web only.

Disabled
The toggle can't be tapped or focused. It keeps its position, so people can still see if it is on or off.
When to use: when the setting exists but can't be changed right now.
When not to use: when the reason isn't clear. If someone can't tell why a toggle is disabled, explain it nearby.

Rules and behaviors
Behavior
A toggle applies its change right away. It doesn't wait for a save or submit button.
Tapping the toggle or its label switches it.
A disabled toggle keeps its on or off position and can't be tapped or focused.
Hover and focus apply on web only. Focus shows a ring.
Touch area
The touch area is at least 44 × 44, even though the visible toggle is smaller (20 tall for small, 28 tall for medium).
The extra area is invisible padding around the toggle. The drawing itself doesn't get bigger.
When the toggle has a label, the whole row is the touch area, and it is at least 44 tall.
The touch areas of neighboring controls must not overlap.
Keyboard
Space switches the toggle on or off.
Best practice
Make sure the label says what happens when the toggle is on.
Keep related toggles together in a list, with enough space between rows so touch areas don't overlap.
Use the description when the label alone isn't enough to explain the setting.
Accessibility
The toggle has no visible text, so it needs an accessibility label.
The state should be read out as on or off.
On and off are shown by the knob position, not only by color.
The touch area is at least 44 × 44, which helps people who can't tap precisely.
A disabled toggle can't be focused.
