Toggle
Toggle
Usage
A toggle is used to view or switch between enabled or disabled states. Toggle switch gives control over a feature or option that can be turned on or off.
State
On
Off
Muted On
Muted Off
Attributes
None
Text
Icon
Dark/Light
Time
Pattern Rule
Best Practice
- Let people know what happens when the toggle is switched by using a tooltip.
- Toggles should never require users to press a button to apply the settings.
Do
- Use toggles when your intent is to turn something on or off instantly.
- Use for any feature or option that can be turned on or off.
- If a physical switch would work for the action, the toggle is probably the best component to use.
- Use for making it possible to choose one or more options from a limited number of options.
Don’t
- Toggles should never require users to click a button to apply or save the setting.
- Avoid using when you have more than 10 options to choose from.
- Don’t change the selection of another toggle when another one is clicked. Only exception is when a toggle is used to make a bulk selection of multiple items.