Switch or checkbox?
Both hold a yes or a no — but they say different things about it. This guide decides which one a boolean gets and how it's laid out; the style guide shows the components themselves.
A switch turns something on or off; a checkbox picks something. If the question reads “which of these?” it's checkboxes. If it reads “on or off?” it's a switch.
Quick reference
The two controls side by side.
| Switch | Checkbox | |
|---|---|---|
| Answers | On or off? | Which of these? Done? |
| Typical jobs | Settings, visibility, notifications, record flags | Picking from a set, completion, consent, table cells |
| Stands | Alone — each one is its own decision | In a set — or as a tick on an item |
| In this app | SwitchField | CheckboxRow |
Six questions
Walk them in order — the first question that gives a clear answer decides it.
- 1Is the user selecting rows, or picking items from a set?Checkbox
Filter lists, plan pickers, "Include: Tasks / Notes" → checkboxes. Several booleans that answer the same question are a set, even when there are only two of them.
- 2Is the user marking something done?Checkbox
A task completed, an onboarding step ticked off → checkbox. The tick is the point; a switch reads as a setting, not progress.
- 3Is the user agreeing to or acknowledging something?Checkbox
"I confirm…", "I agree to…" → checkbox. Consent is a statement the user signs, not a mode they switch on.
- 4Is it inside a dense table or grid cell?Checkbox
A checkbox is square, compact and scans down a column. A switch is wide and reads as a row-level setting → checkbox.
- 5Is it the checkbox field type in a form someone built?Checkbox
The form builder's own "checkbox" field is the form author's content, not our UI → it stays a checkbox.
- 6Anything else that's a single yes / no?Switch
Settings, record properties (Active, Paid leave), visibility, notifications, options on an action ("Add to future shifts in this schedule") → switch — whether it saves immediately or when the user presses Save.
On question 6: Nielsen Norman Group's strict rule is “switches only for immediate effect”. We deliberately allow them in Save forms — as long as the switch describes an on/off state, the Save button makes the commit point obvious.
Layout
One default, one exception. Try them — every example here is the real component.
<SwitchField />The description lines up under its label, not under the switch. Rows sit 20px apart — well clear of the 2px between a label and its description, so each pair reads as one unit. No border — the section heading already groups the stack. Click anywhere on the row.
<SwitchField>{children}</SwitchField>What the switch reveals starts on the label's left edge, so it reads as part of this row. Hide it while the switch is off.
<SwitchField bordered align="right" />When a single toggle is the whole of its section, the card gives it a shape and the switch moves to the far edge. This is the only right-aligned switch.
<CheckboxRow />Two booleans answering one question — “what goes in?” — are a set.
In this app
Real booleans, and which question decided them.
| Boolean | Where | Control | Question |
|---|---|---|---|
| Visible to support workers | Alert, contact, leave type | Switch | 6 · visibility |
| Multi-timezone scheduling | Scheduling settings | Switch | 6 · setting |
| Active | Cost code rule | Switch | 6 · record property |
| Add break to future shifts | Add break | Switch | 6 · option on an action |
| Notify Primary Coordinator | Add participant | Switch | 6 · one-off on submit |
| Associate plans | Goal drawer | Checkbox | 1 · picking from a set |
| Include Tasks / Include Notes | Download goal summary | Checkbox | 1 · picking from a set |
| Other calendars | Calendar rail | Checkbox | 1 · picking from a set |
| Completed | Task | Checkbox | 2 · marking done |
| Onboarding register | Onboarding | Checkbox | 4 · grid cell |
| A form's checkbox field | Form builder | Checkbox | 5 · user content |
Writing the label
The label names what's on; the description says what that does.
- Enable SMS reminders→SMS reminder
The switch already says "enable". The label names the thing that's on.
- When enabled, support workers can see this alert.→Support workers can see this alert in the mobile app.
The description says what happens when it's on — "when enabled" is implied.
- Does not require NDIS number→Requires NDIS number
A negative label makes on mean "not". Prefer the positive when production copy allows.
Do / Don't
- Use SwitchField and CheckboxRow — they carry the layout and the accessible name
- Put fields a switch reveals in its children, so they line up under the label
- Stack described rows with space-y-5 — bare labels can sit closer, at space-y-3
- Use the same control for the same concept everywhere — visibility is always a switch
- Switches are fine in a Save form when they describe an on/off state
- A confirmation modal may gate turning a risky switch on
- Don't use a switch to pick from a set — two related booleans are still a set
- Don't use a checkbox for a single setting or record property
- Don't put the switch on the right outside the bordered-card exception
- Don't border each row in a stack — the section heading already groups them
- Don't mix switches and checkboxes for single yes/no values in one section
Recorded exceptions
Tasks and Calendar are held to strict production parity, so these keep production's checkboxes until production changes.
- Task Completed / Billable pair — board rows, task drawer, create modal, calendar linked-task fieldsTasks
- "Include charges" — task summary download and emailTasks
- "Delete linked Task" — calendar delete dialogCalendar
- "Show each user's own event colours" — calendar railCalendar
Sources
The framework distils published guidance — worth reading in full when a case doesn't fit neatly.
- Nielsen Norman Group — Toggle-Switch Guidelines
- Material Design 3 — Switch
- Material Design 3 — Checkbox
- Apple HIG — Toggles
- IBM Carbon — Toggle
- Atlassian Design — Toggle
Agents get the same rules in condensed form: apps/next/docs/ux-guides/switch-vs-checkbox.md — keep both in sync when the framework changes.