A checkbox component.
Name | Type | Description |
---|---|---|
color | string | Checkbox color |
id | string | Checkbox id |
label | string | Checkbox label |
checked | boolean | Checkbox state |
disabled | boolean | Checkbox disabled state |
Name | Type | Description |
---|---|---|
onChange | function | Callback function when the checkbox is changed |
<Checkbox
color='purple'
id='my-checkbox'
label='My checkbox'
checked={true}
onChange={() => {}}
disabled={false}
/>
ISC