|
@ -1,13 +1,8 @@ |
|
|
import React, { PropTypes } from 'react'; |
|
|
import React, { PropTypes } from 'react'; |
|
|
|
|
|
import { AbstractCheckboxProps } from '../checkbox/Checkbox'; |
|
|
import Radio from './radio'; |
|
|
import Radio from './radio'; |
|
|
|
|
|
|
|
|
export interface RadioButtonProps { |
|
|
export interface RadioButtonProps extends AbstractCheckboxProps {} |
|
|
value: string | number; |
|
|
|
|
|
style?: React.CSSProperties; |
|
|
|
|
|
disabled?: boolean; |
|
|
|
|
|
checked?: boolean; |
|
|
|
|
|
onChange?: (e: any) => any; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
export default class RadioButton extends React.Component<RadioButtonProps, any> { |
|
|
export default class RadioButton extends React.Component<RadioButtonProps, any> { |
|
|
static defaultProps = { |
|
|
static defaultProps = { |
|
|