KCheckbox
A group of options for multiple choices.
Install
bash
pnpm add @ikun-ui/checkboxpnpm add @ikun-ui/checkboxbash
yarn add @ikun-ui/checkboxyarn add @ikun-ui/checkboxbash
npm install @ikun-ui/checkboxnpm install @ikun-ui/checkboxBasic usage
Checkbox can be used alone to switch between two states.
Disabled checkbox
Set the disabled attribute.
Checkbox Props
| Name | Type | Default | Description |
|---|---|---|---|
| label | string | - | Label of the Checkbox |
| disabled | boolean | false | Whether the Checkbox is disabled |
| value | boolean | false | Binding value |
| cls | string | - | Additional class |
| attrs | any | {} | Additional attributes |
Checkbox Events
| Name | Description | Type |
|---|---|---|
| updateValue | Event fired when the value is changes | (value: Event)=> void |