Skip to content

Inputs

Checkbox

Also calledcheck boxtick box

A control that records a checked or unchecked choice. Several checkboxes can be selected independently.

How people describe it

  • “little square you tick next to a choice”
  • “boxes that let me pick several options”
  • “square with a check mark when selected”

Good for

  • Choosing multiple preferences
  • Agreeing to terms in a form

Don’t mix it up with

  • Usually applies an on/off setting immediately rather than collecting a form choice.

What your library calls it

LIBRARYCALLS IT
shadcn/uiCheckbox

Accessibility checklist

  • Associate the checkbox with its label
  • Support Space to toggle and show keyboard focus
  • Use fieldset and legend for related choices

Try it

Notification channels

Tick the options. The parent shows a dash when only some are picked.

Prompt

Add a checkbox with a clickable label and keyboard toggling.

~15 estimated prompt tokensDetailed: ~52 estimated prompt tokens

Rough estimate for prompt text only; actual counts vary by model and context.

<label style="display:flex; align-items:center; gap:8px; min-height:44px">
  <input type="checkbox" name="newsletter" value="yes">
  Send me the monthly newsletter
</label>

Used in

Explore website blueprints that use this component.