Docs
Checkbox
Checkbox
Collect user's choices.
Usage
Example Code
1import { Checkbox } from "inc-design-system/checkbox";Example Code
1<Checkbox />Props
Checkbox
| Prop | Type | Description | Default |
|---|---|---|---|
| className | string | Additional CSS classes to apply to the checkbox. | - |
| indeterminate | boolean | Indeterminate state for checkbox. Default is false. | false |
| asChild | boolean | Render the checkbox as a child component. Default is false. | false |
| defaultChecked | boolean | 'indeterminate' | The initial checked state of the checkbox. No default value. | - |
| checked | boolean | 'indeterminate' | The checked state of the checkbox. No default value. | - |
| onCheckedChange | (checked: boolean | 'indeterminate') => void | Callback when the checked state of the checkbox changes. No default value. | - |
| disabled | boolean | Whether the checkbox is disabled. No default value. | - |
| required | boolean | Whether the checkbox is required for form submission. No default value. | - |
| name | string | The name attribute of the checkbox. No default value. | - |
| value | string | The value attribute of the checkbox. No default value. | - |