React-iCheck
!NPM versionnpm-badgenpm !Build Statustravis-ci-imagetravis-ci-url
!Dependency Statusdeps-badgedeps
!devDependency Statusdev-deps-badgedev-deps
!peerDependency Statuspeer-deps-badgepeer-deps
iCheck components built with React. No jQuery and Zepto
Online demo: http://luqin.github.io/react-icheck
Note: React-iCheck still in development
Features
- Identical inputs across different browsers and devices — both desktop and mobile
- Touch devices support — iOS, Android, BlackBerry, Windows Phone, Amazon Kindle
- Keyboard accessible inputs —
Tab
,Spacebar
,Arrow up/down
and other shortcuts
- Customization freedom — use any HTML and CSS to style inputs (try 6 Retina-ready skins)
- No jQuery and Zepto
- Screenreader accessible inputs — ARIA attributes for VoiceOver and others
- Lightweight size
Usage
```sh npm install react-icheck icheck --save ``` ```js import 'icheck/skins/all.css'; // or single skin css import {Checkbox, Radio} from 'react-icheck'; // Checkbox with label // without label First name // Radio ``` ```js import {Radio, RadioGroup} from 'react-icheck';<Radio
value="3"
radioClass="iradio_square-blue"
increaseArea="20%"
label="Radio, <span class='label1'>#input-3</span>"
/>
<Radio
value="4"
radioClass="iradio_square-blue"
increaseArea="20%"
label="Radio, <span class='label1'>#input-4</span>"
/>
<Radio
value="5"
radioClass="iradio_square-blue"
increaseArea="20%"
label="Radio, <span class='label1'>#disabled</span>"
disabled
/>
```
More examples: Online demo, Source