react-icheck

iCheck components built with React. Highly customizable checkboxes and radio buttons

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
react-icheck
0.3.85 years ago7 years agoMinified + gzip package size for react-icheck in KB

Readme

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 Skins

Features

  • Touch devices support — iOS, Android, BlackBerry, Windows Phone, Amazon Kindle
  • Keyboard accessible inputsTab, Spacebar, Arrow up/down and other shortcuts
  • No jQuery and Zepto
  • Screenreader accessible inputsARIA attributes for VoiceOver and others
  • Lightweight size
By default, iCheck doesn't provide any CSS styles for wrapper divs (if you don't use skins).

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

Browser support

iCheck is verified to work in Internet Explorer 6+, Firefox 2+, Opera 9+, Google Chrome and Safari browsers. Should also work in many others. Mobile browsers (like Opera mini, Chrome mobile, Safari mobile, Android browser, Silk and others) are also supported. Tested on iOS (iPad, iPhone, iPod), Android, BlackBerry and Windows Phone devices.

Contribute

Dev base on react-component-tools ```sh $ git clone https://github.com/luqin/react-icheck.git $ cd react-icheck $ npm install $ npm start # Run the docs site in development mode. This will watch for file changes as you work. And auto refresh the page to see the updates. ```