Checkbox
A binary toggle input for selecting one or multiple options.
Installation
pnpm dlx shadcn@latest add @columbus/checkboxUsage
Wrap the checkbox in a Label, or pass aria-label,
so it has an accessible name. Inside a Field, wrap it
in FieldLabel.
import { Checkbox } from "@/components/ui/checkbox";
import { Label } from "@/components/ui/label";
<Label>
<Checkbox onCheckedChange={(checked) => console.log(checked)} />
Accept terms and conditions
</Label>;For several related checkboxes, use Checkbox Group.
With description
Link the description with aria-describedby so screen readers read it too.
You agree to our terms of service and privacy policy.
Card
Disabled
API reference
Also accepts every Base UI Checkbox.Root prop. The check and indeterminate icons are built in.
Prop
Type