Checkbox
A binary selection control with an accent check mark.
Install
npx shadcn add @clearly/checkboxPreview
Usage
import { Checkbox } from "@/components/ui/checkbox"
<Checkbox />Every Clearly component also accepts glass (subtle·medium·strong), specular and className.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
checked | boolean | — | Controlled checked state. |
defaultChecked | boolean | false | Initial checked state. |
onCheckedChange | (checked: boolean) => void | — | Change callback. |
disabled | boolean | false | Disable the control. |