ant-design/components/radio/radioButton.tsx

21 lines
409 B
TypeScript
Raw Normal View History

2016-09-21 11:54:53 +08:00
import React from 'react';
import Radio from './radio';
2016-08-10 10:26:42 +08:00
export interface RadioButtonProps {
value: string | number;
style?: React.CSSProperties;
}
export default class RadioButton extends React.Component<RadioButtonProps, any> {
static __ANT_RADIO_BUTTON = true;
static defaultProps = {
prefixCls: 'ant-radio-button',
2016-07-13 11:14:24 +08:00
};
render() {
return (
<Radio {...this.props} />
);
}
}