Toggle switch

A toggle switch is a binary control that switches between two states, typically on and off, with immediate effect. It is visually distinct from a checkbox and implies that the change takes effect immediately without requiring a save action.

What is a toggle switch in UX design?

A toggle switch is a binary UI control that represents and controls a two-state setting, typically on and off, enabled and disabled, or active and inactive. Unlike a checkbox, which represents a choice in a form that is submitted later, a toggle switch implies that the state change takes effect immediately when the user interacts with it. Toggle switches are commonly used in settings interfaces, preference panels, and feature flags where users need to enable or disable functionality without a separate save action.

When should you use a toggle switch versus a checkbox?

Use a toggle switch when the setting takes effect immediately upon interaction, without requiring the user to click a save button. Settings that turn a feature on or off, enable or disable notifications, or activate or deactivate a preference are appropriate for toggle switches. Use a checkbox when the user is making a selection that will be submitted as part of a form, when the choice is part of a multi-item selection, or when the setting does not take effect until the form is submitted. The feedback loop implication of a toggle is immediacy: users expect the change to happen the moment they interact with the control.

How to label toggle switches clearly?

The most common toggle switch labeling mistake is using labels that describe the toggle's state rather than what the setting controls. A toggle labeled "On" and "Off" is ambiguous: does it describe the current state or the state that will result from clicking? The clearest approach labels the setting itself with a noun or noun phrase that describes what is being controlled, such as "Email notifications" or "Dark mode," and lets the visual state of the toggle communicate whether it is on or off. The toggle's visual design, typically a filled circle on a colored track for on and an empty circle on a grey track for off, communicates state independently of the label.

Related terms

Related guides