Checkbox
Checkbox with label and optional description. Supports indeterminate state.
Preview
Usage
import { Checkbox } from '@ramtt/ui'
<Checkbox checked={agreed} onChange={setAgreed} label="I agree to the terms" />Props
| Prop | Type | Default | Description |
|---|---|---|---|
| checked* | boolean | — | Checked state |
| onChange* | (checked: boolean) => void | — | Change handler |
| label | string | — | Label text |
| description | string | — | Description below label |
| indeterminate | boolean | false | Indeterminate state |
| disabled | boolean | false | Disable the checkbox |