0.8.1 • Published 4 years ago
react-ui-icheck v0.8.1
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
onBlurandonFocuslabel events to accompanyonMouseOutandonMouseOver - Added support for labels as
CheckboxandRadiochildren - Introduced
CheckboxGroupsimilar to theRadioGroup - Introduced
labelTagandlabelTagClassNameproperties forCheckboxandRadio - Introduced
radioWrapClassNameandradioWrapTagproperties forRadioGroup - Moved corresponding properties from
EnchantedSwitchtoCheckboxandRadio - Removed
EnchantedSwitchin favour ofInputandLabel - Removed
refsusage 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-icheckHowever, 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 icheckLicense
Released under the MIT License.