hue-checkbox
v1.1.9
Published
hue-checkbox =============
Downloads
6
Readme
hue-checkbox
A react component can custome checkbox select background color
# via npm
npm install hue-checkbox
# via Yarn
yarn add hue-checkbox
Usage
import HueCheckbox from 'hue-checkbox'
<HueCheckbox checked color="#000000">Apple</HueCheckbox>
<HueCheckbox disabled color="#0000FF">Orange</HueCheckbox>
API
Props
Checkbox
| Property | Description | Type | Default | Version | | --- | --- | --- | --- | --- | | color | Specifies the checkbox selected background color | string | #1890ff | | | checked | Specifies whether the checkbox is selected | boolean | false | | | defaultChecked | Specifies the initial state: whether or not the checkbox is selected | boolean | false | | | disabled | If disable checkbox | boolean | false | | | onChange | The callback function that is triggered when the state changes | function(e:Event) | - | |