Skip to content

Checkbox

Turns an independent option on or off, including an indeterminate “some selected” state.

npx dtheo@latest add checkbox

When to use

  • Selecting rows
  • Options applied with a Save button
  • Immediate on/off settings: use Switch

Keyboard

Space
Toggles the checkbox
  • The 14px box has a 24px hit area. Wrap it in a label so the text is clickable too.

Used in