mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-25 00:08:27 +08:00
21 lines
353 B
JavaScript
21 lines
353 B
JavaScript
var Radio = require('rc-radio');
|
|
var React = require('react');
|
|
|
|
var AntRadio = React.createClass({
|
|
getDefaultProps() {
|
|
return {
|
|
prefixCls: 'ant-radio'
|
|
};
|
|
},
|
|
render() {
|
|
return (
|
|
<label>
|
|
<Radio {...this.props} children={null} />
|
|
{this.props.children}
|
|
</label>
|
|
);
|
|
}
|
|
});
|
|
|
|
module.exports = AntRadio;
|