Checkbox
A control for a single on/off choice, with an indeterminate state.
Installation
npx shadcn@latest add @blank/checkboxUsage
import { Checkbox } from "@/components/ui/checkbox"<Checkbox id="terms" />Examples
States
Checked and indeterminate use brand, the identity color, rather than primary, so selection looks the same in every component. The mark draws in and out instead of popping.
Group
Several checkboxes under one FieldSet legend, each with a description through FieldContent.
API Reference
Checkbox
Every Radix Checkbox.Root prop, such as checked, defaultChecked, onCheckedChange and disabled.