All guides
FormsPatterns5 min read

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.

If you only remember one rule

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
AnswersOn or off?Which of these? Done?
Typical jobsSettings, visibility, notifications, record flagsPicking from a set, completion, consent, table cells
StandsAlone — each one is its own decisionIn a set — or as a tick on an item
In this appSwitchFieldCheckboxRow

Six questions

Walk them in order — the first question that gives a clear answer decides it.

  1. 1
    Is 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.

  2. 2
    Is 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.

  3. 3
    Is 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.

  4. 4
    Is 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.

  5. 5
    Is 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.

  6. 6
    Anything 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.

Default — switch leads, text indented<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.

Revealed content — under the label<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.

Exception — a card on its own<SwitchField bordered align="right" />
Support worker visibility

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.

Checkboxes — a set, box leads<CheckboxRow />
Include in the summary

Two booleans answering one question — “what goes in?” — are a set.

In this app

Real booleans, and which question decided them.

BooleanWhereControlQuestion
Visible to support workersAlert, contact, leave typeSwitch6 · visibility
Multi-timezone schedulingScheduling settingsSwitch6 · setting
ActiveCost code ruleSwitch6 · record property
Add break to future shiftsAdd breakSwitch6 · option on an action
Notify Primary CoordinatorAdd participantSwitch6 · one-off on submit
Associate plansGoal drawerCheckbox1 · picking from a set
Include Tasks / Include NotesDownload goal summaryCheckbox1 · picking from a set
Other calendarsCalendar railCheckbox1 · picking from a set
CompletedTaskCheckbox2 · marking done
Onboarding registerOnboardingCheckbox4 · grid cell
A form's checkbox fieldForm builderCheckbox5 · 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

Do
  • 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
  • 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.

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.