Toggle, Checkbox, and Radio Button
Toggles, checkboxes, and radio buttons represent different choice models: immediate binary state, independent selections, and one selection from a mutually exclusive group.
Download Markdown (.md)Soroush’s Product Wiki · https://wiki.soroush.uk/topic/toggle-checkbox-and-radio-button/
01What it means
A toggle or switch changes one on/off setting, often immediately. A checkbox selects an independent option and may be part of a multi-select group; it can also represent a mixed aggregate state. A radio button chooses exactly one option from a labeled group.[1][2][3]
02Why it matters
Matching the control to the decision makes consequences and selection rules predictable. The wrong pattern can obscure whether a choice takes effect immediately, whether several options are allowed, or whether submission is still required.
03When to use it
Use a toggle for an immediate on/off setting, checkboxes for zero or more independent choices, and radio buttons for one required or optional choice among a small visible set. Use a select when a mutually exclusive list is too long to display comfortably.
04How it works
- Define the choice cardinality, default, optionality, and whether changes apply immediately or on submission.
- Choose the control whose established behavior matches that model.
- Use persistent, specific labels and a group label where choices share a question.
- Expose checked, mixed, disabled, invalid, and focus states through native controls when possible.
- Test keyboard operation, touch targets, zoom, error handling, and changes that trigger costly effects.
05A practical example
Notification settings use a toggle for turning all notifications on immediately, checkboxes for independently choosing email and push channels, and radio buttons for selecting one digest frequency. The labels explain effects without relying on color or position.
06Where it breaks
Platform appearance varies, and a toggle can be confusing when a save action delays the change. Preselected choices may bias decisions, while large option groups become difficult to scan regardless of control type.
Common mistakes
- Using checkboxes when only one option may be selected.
- Using a toggle for an action rather than a persistent binary state.
- Requiring a separate Save button for a switch that visually implies immediate effect.
- Writing labels such as “On” without naming what is on.