Skip to content

Checkbox Group

Free

A set of checkboxes with one shared value: the list of checked options. One size fits every box, and an optional parent box sets them all.

  • Base UI
  • React 19
  • Tailwind CSS 4

Added Nov 11, 2026 · MIT + Commons Clause

Playground

Loading the preview

Props

Put each option in a label.

The sample also uses Field. One command adds them with this item:

notify-channels.tsx

CheckboxGroup

<div>
PropTypeDefaultDescription
classNamestring—
size"default""lg"—The size of every checkbox in the group; a checkbox prop wins.
From Base UICheckboxGroupBase UI docs
valuestring[]—Names of the checkboxes in the group that should be ticked. To render an uncontrolled checkbox group, use the defaultValue prop instead.
defaultValuestring[]—Names of the checkboxes in the group that should be initially ticked. To render a controlled checkbox group, use the value prop instead.
onValueChange—Event handler called when a checkbox in the group is ticked or unticked. Provides the new value as an argument.
...props<div> attributes—Every other attribute goes to the <div>, with a ref.
  • Use it when the value is the list of checked options, not one yes or no.
  • Give the group allValues and one Checkbox parent for a box that sets them all.
  • Use size="lg" on the group, and every box in it takes that size.
  • For one choice from a short list, use a Radio Group.
  • For many options, or options people search, use a Combobox.
TabMoves to the next box in the group.
SpaceChecks or clears the focused box.

The group needs a name: a FieldLegend or an aria-labelledby.

A parent box shows a dash when only some boxes are checked.

Built with

Installs with Checkbox Group

Components
Checkbox
  1. AddedCheckbox Group, with Checkbox.
Open the release