Checkbox
Built on Radix's Checkbox primitive for correct checked/unchecked/indeterminate semantics.
<Checkbox label="Accept terms and conditions" description="Required to continue" />
Editable — change the code above and the preview updates live.
Installation
import { Checkbox } from "@labanaat/ui/checkbox";Props
| Prop | Type | Default | Description |
|---|---|---|---|
| label | ReactNode | — | Field label |
| description | string | — | Helper text shown below the label |
| checked / defaultChecked | boolean | "indeterminate" | — | Controlled / uncontrolled checked state |
| onCheckedChange | (checked) => void | — | Change handler |
| disabled | boolean | false | Disables interaction |