KCheckbox
A group of options for multiple choices.
Install
bash
pnpm add @ikun-ui/checkbox
pnpm add @ikun-ui/checkbox
bash
yarn add @ikun-ui/checkbox
yarn add @ikun-ui/checkbox
bash
npm install @ikun-ui/checkbox
npm install @ikun-ui/checkbox
Basic 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 |