switch ui component for react
- support ie8,ie8+,chrome,firefox,safari
var Switch = require('react-rcswitch');
var React = require('react');
React.render(<Switch />, container);| name | type | default | description |
|---|---|---|---|
| prefixCls | String | rc-switch | |
| className | String | '' | additional class name of root node |
| checked | boolean | false | whether switch is checked |
| defaultChecked | boolean | false | whether switch is checked on init |
| onChange | Function | called when switch is checked or unchecked |
npm install
npm start
http://localhost:8001/examples/
http://localhost:8001/tests/runner.html?coverage
react-rcswitch is released under the MIT license.
switch ui component for react
- support ie8,ie8+,chrome,firefox,safari
var Switch = require('react-rcswitch');
var React = require('react');
React.render(<Switch />, container);| name | type | default | description |
|---|---|---|---|
| prefixCls | String | rc-switch | |
| className | String | '' | additional class name of root node |
| checked | boolean | false | whether switch is checked |
| defaultChecked | boolean | false | whether switch is checked on init |
| onChange | Function | called when switch is checked or unchecked |
npm install
npm start
http://localhost:8001/examples/
http://localhost:8001/tests/runner.html?coverage
react-rcswitch is released under the MIT license.
