GithubHelp home page GithubHelp logo

pingan1927 / checkbox Goto Github PK

View Code? Open in Web Editor NEW

This project forked from react-component/checkbox

0.0 2.0 0.0 516 KB

React Checkbox

Home Page: http://react-component.github.io/checkbox/

CSS 47.36% JavaScript 52.64%

checkbox's Introduction

rc-checkbox


React Checkbox

NPM version build status Test coverage gemnasium deps npm download

install

rc-checkbox

Usage

var Checkbox = require('rc-checkbox');
var React = require('react');
var ReactDOM = require('react-dom');
ReactDOM.render(<Checkbox />, container);

API

props

name type default description
prefixCls String rc-checkbox
className String '' additional class name of root node
name same with native input checkbox
checked enum: 0,1,2
defaultChecked enum: 0,1,2 0 same with native input checkbox
onChange Function(e:Event, checked:Number) called when checkbox is changed. e is native event, checked is original checked state.

Development

npm install
npm start

Example

http://localhost:8001/examples/

online example: http://react-component.github.io/checkbox/examples/

Test Case

npm test
npm run chrome-test

Coverage

npm run coverage

open coverage/ dir

License

rc-checkbox is released under the MIT license.

checkbox's People

Contributors

benjycui avatar yiminghe avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.