Checkbox

Interactive control for binary choices with checked and unchecked states

Primitive

The checkbox toggles a single on/off value, with checked, unchecked, and indeterminate states. Use it for individual settings, consent agreements, or one item in a list; for a set of related options sharing one value, reach for CheckboxGroup.

Preview

Installation

Usage

Examples

With Label

Pair the checkbox with a Label so clicking the text toggles it.

Controlled

Pass checked and onCheckedChange to manage the state yourself.

Notifications are disabled

Disabled State

Set disabled to prevent interaction.

Color

Use color="primary" to fill a checked box with the brand color instead of the default emphasis grey that other selection controls share.

Form Integration

Use Field and Form for labeling and validation. See the Forms guide for more patterns.

API Reference

The Checkbox component is built on top of Base UI's Checkbox. All Base UI props are supported. The documentation below only covers custom props specific to our implementation.

Props

Upgrading

If you're reinstalling over an earlier version, check these changes:

BeforeNow
variant="elevated"Removed. The default works on any surface, so drop the prop.
Checked fill in the primary blueNeutral emphasis grey. Pass color="primary" for the brand fill.