Skip to content
English
Don't know what it's called51 / 71

Switch or checkbox

What it's calledSwitchtogglecheckboxGlossary

What goes wrong

Settings that apply at once are drawn as checkboxes, and a form that waits for a button uses switches, so people never know whether a change has happened.

The fix

Use a switch when the change takes effect the moment it flips, and a checkbox when a button applies the choice later.

Tell your AI

Use a switch, filled with var(--ds-accent) when on and sliding over var(--ds-duration-fast) (160ms), only for settings that take effect the moment they flip, and a 20px checkbox with var(--ds-radius-xs) (6px) corners for choices a button applies; install the LayQ components elastic-switch (/registry/v1/controls-elastic-switch.json) and checkbox (/registry/v1/controls-checkbox.json).

  • --ds-accent
  • --ds-duration-fast160ms
  • --ds-radius-xs6px
Why AI-generated UIs all look the same: 12 rules that fix it

RemindersApplies at once

Workout reminders

Weekly summary

Export my dataApplies on Export

Heart rate

GPS routes

Export

Boxes that act at once, switches that wait