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
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
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-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 icheckReleased under the MIT License.
