mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-25 19:50:05 +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;
|