Switch
Switches toggle a single setting on or off. Unlike checkboxes, they take effect immediately without requiring a form submission. Use them for binary preferences like 'Enable notifications' or 'Dark mode'.
States
Usage Guidelines
Do
Use switches for settings that take effect immediately. The user expects instant feedback.
Don't
Don't use switches in forms that require a submit button. Use checkboxes instead.
Do
Always pair with a label describing what the switch controls.
Don't
Don't use switches for selecting from multiple options. They are strictly binary (on/off).