On/off switches for settings or features — immediate, satisfying, and instantly
understood. Flipping a toggle applies the change straight away and emits
change.
instant settings like notifications or dark mode. For options that only apply on submit, use a Checkbox.
<button role="switch"> with aria-checked reflecting the state.aria-label or an associated visible label.disabled button state (removed from the tab order) and dims the control.