ant-design/components/checkbox/index.jsx

19 lines
326 B
React
Raw Normal View History

2015-12-24 15:03:06 +08:00
import RcCheckbox from 'rc-checkbox';
import React from 'react';
2015-12-24 15:03:06 +08:00
import Group from './Group';
2015-12-24 15:03:06 +08:00
const Checkbox = React.createClass({
2015-07-15 16:01:24 +08:00
getDefaultProps() {
2015-08-18 14:03:44 +08:00
return {
prefixCls: 'ant-checkbox'
};
},
render() {
2015-12-24 15:03:06 +08:00
return <RcCheckbox {...this.props} />;
2015-07-15 16:01:24 +08:00
}
2015-07-15 15:19:24 +08:00
});
2015-12-24 15:03:06 +08:00
Checkbox.Group = Group;
2015-12-24 15:07:18 +08:00
export default Checkbox;