Toggle Switches represent binary on/off states with immediate effect—no submit button needed. Sliding animation from off (left/gray) to on (right/colored) provides clear feedback. Like a physical light switch. Use for settings, enabling features, or any true/false choice that takes effect immediately.
Use toggles for binary on/off settings that apply immediately: notification preferences, feature flags, public/private visibility, dark mode. Don't use in forms that require submit—use checkboxes instead. Toggle should take effect on click, not on form submission. Label should describe the setting, not the action ("Email notifications" not "Enable email notifications").
Form Patterns
On/Off control—instant action, binary state, physical switch metaphor, immediate effect