Checkbox
checkboxA single choice with a visible label wired to it for a screen reader. Carries a destructive variant for choices that cannot be undone, and the box itself fills with the accent when checked so the state is readable at a glance.
import { Checkbox } from "@/components/forme/checkbox/checkbox";
export function CheckboxDemo() {
return (
<div className="flex flex-col gap-5">
<div className="flex flex-col gap-3">
<Checkbox label="Email me about releases" defaultChecked />
<Checkbox label="Weekly digest" />
<Checkbox label="Disabled" disabled />
</div>
<div className="flex flex-col gap-3">
<Checkbox label="Delete every branch except main" destructive />
<Checkbox label="I understand this cannot be undone" destructive />
</div>
</div>
);
}Install
Adds the component, its registry dependencies, and the token stylesheet you import once.
Usage
import { Checkbox } from "@/components/forme/checkbox/checkbox";
<Checkbox label="Send me product updates" />When to use
Reach for it
- Options in a form that apply when it is submitted, and lists where several can be picked.
Use something else
- Settings that apply instantly; use a
Switch. - One choice out of several; that is a
RadioGroup.
API reference
Read from the source, so it is the API of the file you install. A prop marked * is required.
Checkbox
A checkbox and its label are one component, not two.
| Prop | Type | Default | Description |
|---|---|---|---|
label | React.ReactNode | — | The visible label. Rendered beside the box and wired to it for a screen reader. |
destructive | boolean | — | Renders destructive: a red box for a choice with consequences. |
Also takes every prop of Omit<CheckboxRootProps, "children">.
Accessibility
- The label is part of the component and tied with
aria-labelledby, so the text is part of the click target.
Related


Radio group
A choice of exactly one option, where the group owns the value and the arrow keys travel in the direction the options are laid out. Horizontal and vertical are the same component with an orientation, and a disabled option reads as present but unavailable.
forms

Switch
A control for a setting that takes effect immediately, with a label wired to it for a screen reader. Optional on and off text inside the track, and the thumb travels on a single transform so the motion stays smooth.
forms

Poll
A question to vote on that turns into its results in place: bars grow to each share, the percentages roll and always total 100, and your choice is marked. Single or multiple choice, on real radios and checkboxes.
forms