Git Product home page Git Product logo

checkbox's Introduction

rc-checkbox


React Checkbox

NPM version build status Test coverage Dependencies DevDependencies npm download

install

rc-checkbox

Usage

require('rc-checkbox/assets/index.css');
const Checkbox = require('rc-checkbox');
const React = require('react');
const 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 String 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/simple.html

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

yiminghe avatar afc163 avatar yesmeck avatar benjycui avatar paranoidjk avatar bingqichen avatar ne-smalltown avatar superraytin avatar dependabot-preview[bot] avatar aaa70 avatar raohai avatar ilnicki avatar arlair avatar sarehag avatar nataliiakononikhina avatar swistak35 avatar ambientlighter avatar jaimemendozadev avatar kanweiwei avatar ztplz avatar

Watchers

James Cloos 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.