<?xml version="1.0" encoding="utf-8"?>

Toggle switch

Toggle switch Bad Practice
Toggle switch Best Practice

Toggle switches are selection controls that provide only two mutually exclusive options (usually "on" or "off") and always have a default value.

Toggle switches are the best solution for changing system settings where feedback is immediate, such as turning on dark mode or airplane mode.

The selection of a toggle switch takes effect immediately. On the other hand, after selecting a checkbox option, users have to press the Submit button.

Improve your UX & Product skills with interactive courses that actually work