• Stars
    star
    177
  • Rank 215,985 (Top 5 %)
  • Language
    JavaScript
  • Created about 9 years ago
  • Updated over 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

🔘 iCheck components built with React. Highly customizable checkbox, radio buttons and radio group.

React-iCheck

NPM version Build Status

Dependency Status devDependency Status peerDependency Status

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

  • Identical inputs across different browsers and devices — both desktop and mobile
  • Touch devices support — iOS, Android, BlackBerry, Windows Phone, Amazon Kindle
  • Keyboard accessible inputsTab, 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 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

npm install react-icheck icheck --save
import 'icheck/skins/all.css'; // or single skin css

import {Checkbox, Radio} from 'react-icheck';

// Checkbox with label
<Checkbox
  checkboxClass="icheckbox_square-blue"
  increaseArea="20%"
  label="Checkbox"
/>

// without label
<Checkbox
  id="checkbox1"
  checkboxClass="icheckbox_square-blue"
  increaseArea="20%"
/>
<label htmlFor="checkbox1">First name</label>

// Radio
<Radio
  name="aa"
  radioClass="iradio_square-blue"
  increaseArea="20%"
  label="Radio"
/>
import {Radio, RadioGroup} from 'react-icheck';

<RadioGroup name="radio" value="3">
    <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
    />
</RadioGroup>

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

$ 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.

More Repositories

1

awesome-front-end

A curated list of awesome front end resources. 前端资源收藏,欢迎点击 watch 订阅更新
151
star
2

react-router-loader

Dynamically load react-router components on-demand, based on react-proxy-loader
JavaScript
89
star
3

blog

My blog
64
star
4

react-bootstrap-datetimerangepicker

React date & time range picker component base on bootstrap-daterangepicker. This date range picker component for Bootstrap creates a dropdown menu from which a user can select a range of dates. Features include limiting the selectable date range, localizable strings and date formats, a single date picker mode, optional time picker (for e.g. making appointments or reservations), and styles that match the default Bootstrap 3 theme.
JavaScript
60
star
5

react-echarts

💹 React ECharts
JavaScript
59
star
6

echarts-webpack-starter-kit

📉 Starter template for ECharts with webpack and React.
54
star
7

react-component-tools

Common tools I use across my React Component projects. Webpack, Gulp, Babel, Live reload, React hot reload, CommonJs, AMD, ES6 modules, CSS, Images, JSON, Coffeescript, LESS, SASS, PostCSS, ... 通用React组件开发工具
JavaScript
51
star
8

systemjs-starter-kit

ES6 Modules starter project that uses Gulp, Babel, SystemJS, React, react-router, react-bootstrap, ECharts, three.js
JavaScript
35
star
9

react-form-comparison

Awesome React form | Practical comparison of different React form solutions
19
star
10

react-select2

Select2 components built with React.
JavaScript
17
star
11

react-DataTables

DataTables components built with React
JavaScript
12
star
12

react-jstree

jstree components built with React
JavaScript
9
star
13

discourse-api

JavaScript Client Library for Discourse API
JavaScript
5
star
14

react-cron

React component for generating cron expressions.
4
star
15

luqin.github.io

CSS
3
star
16

scrum-rdc

Scrum Dashboard
Vue
3
star
17

react-native-demo

React Native demo
JavaScript
2
star
18

toolbox

1
star
19

react-download

File download component for React
JavaScript
1
star
20

ionic-gulp-sass-build

JavaScript
1
star
21

downloadfile.js

JavaScript
1
star
22

webpack-plugin-notifier

webpack + node-notifier = build status system notifications. webpack plugin that show build status with system notifications
JavaScript
1
star
23

firefly

Python
1
star
24

react-bootstrap-checkbox

Awesome Bootstrap Checkbox components built with React. Font Awesome Bootstrap Checkboxes & Radios. Pure css way to make inputs look prettier.
JavaScript
1
star