ant-design/components/radio/index.jsx

19 lines
319 B
React
Raw Normal View History

import Radio from 'rc-radio';
import React from 'react';
2015-07-16 22:41:27 +08:00
export default React.createClass({
2015-07-16 18:23:25 +08:00
getDefaultProps() {
2015-07-16 22:41:27 +08:00
return {
prefixCls: 'ant-radio'
};
},
render() {
2015-07-17 16:56:40 +08:00
return (
<label>
2015-07-17 17:31:56 +08:00
<Radio {...this.props} children={null} />
2015-07-17 16:56:40 +08:00
{this.props.children}
</label>
);
2015-07-16 18:23:25 +08:00
}
});