iCheck customizable checkboxes and radios built with React.
A small library to create customizable checkboxes and radios which can either use iCheck skins or custom ones.
This library has been originally intended to be a luqin/react-icheck fork. But, after diving into the original code it became more convenient to create a new one as a drop-in replacement with some additional changes:
- Added
onBlur
andonFocus
label events to accompanyonMouseOut
andonMouseOver
- Added support for labels as
Checkbox
andRadio
children - Introduced
CheckboxGroup
similar to theRadioGroup
- Introduced
labelTag
andlabelTagClassName
properties forCheckbox
andRadio
- Introduced
radioWrapClassName
andradioWrapTag
properties forRadioGroup
- Moved corresponding properties from
EnchantedSwitch
toCheckbox
andRadio
- Removed
EnchantedSwitch
in favour ofInput
andLabel
- Removed
refs
usage to follow the "Don't Overuse Refs" guide
The demo can be found on the website alongside with the source here.
The library can be installed like any other npm package.
If you are planning to use your custom skin(s):
$ npm install react-ui-icheck --save
# or
$ yarn add react-ui-icheck
However, if you are planning to use iCheck skin(s) you will need to install
the icheck
package as well:
$ npm install react-ui-icheck icheck --save
# or
$ yarn add react-ui-icheck icheck
Released under the MIT License.