1.1.9 • Published 3 years ago

hue-checkbox v1.1.9

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

hue-checkbox

A react component can custome checkbox select background color

Install with npm, Yarn

# 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

PropertyDescriptionTypeDefaultVersion
colorSpecifies the checkbox selected background colorstring#1890ff
checkedSpecifies whether the checkbox is selectedbooleanfalse
defaultCheckedSpecifies the initial state: whether or not the checkbox is selectedbooleanfalse
disabledIf disable checkboxbooleanfalse
onChangeThe callback function that is triggered when the state changesfunction(e:Event)-
1.1.1

3 years ago

1.1.0

3 years ago

1.1.9

3 years ago

1.1.8

3 years ago

1.1.7

3 years ago

1.1.6

3 years ago

1.1.5

3 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago