Checkbox
Controlled or uncontrolled checkbox with optional label.
Installation
npx dafink-ui add checkboxDemo
Props
| Name | Type | Default | Description |
|---|---|---|---|
| label | string | undefined | Text label rendered next to the checkbox. |
| id | string | undefined | HTML id, links label to input. |
| checked | boolean | undefined | Controlled checked state. |
| disabled | boolean | false | Disables the checkbox. |
| onChange | ChangeEventHandler<HTMLInputElement> | undefined | Change event handler. |