react-ui-icheck
v0.8.1
Published
iCheck customizable checkboxes and radios built with React.
Downloads
1,423
Maintainers
Readme
react-ui-icheck
iCheck customizable checkboxes and radios built with React.
Overview
This library has been originally intended to be a fork of the react-icheck created by luqin which didn't seem to be maintained anymore. However, after diving into the original code it became more convenient to create a new one as a drop-in replacement with some additional features.
Differences
Below you can find the list of the main differences from the original react-icheck library:
- 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
Demo
The demo can be found on the website alongside with the source here.
Installation
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
License
Released under the MIT License.