Checkbox
A flat checkbox. White when off, lemon yellow when on, with a thick navy border and a bold check mark.
checkbox-demo.app
Installation
terminal.sh
npx y2kui@latest add checkboxUsage
import { Checkbox } from "@/components/ui/checkbox";Props
| Prop | Type | Default | Description |
|---|---|---|---|
checked | boolean | 'indeterminate' | — | Controlled checked state. |
defaultChecked | boolean | — | Initial checked state (uncontrolled). |
onCheckedChange | (checked: boolean | 'indeterminate') => void | — | Fired when the checked state changes. |
disabled | boolean | false | Disable the checkbox. |