antd
Version:
An enterprise-class UI design language and React components implementation
30 lines (29 loc) • 1.12 kB
TypeScript
import * as React from 'react';
import * as PropTypes from 'prop-types';
import { RadioGroupProps, RadioGroupState, RadioChangeEvent, RadioGroupButtonStyle } from './interface';
import { ConfigConsumerProps } from '../config-provider';
declare class RadioGroup extends React.Component<RadioGroupProps, RadioGroupState> {
static defaultProps: {
buttonStyle: RadioGroupButtonStyle;
};
static childContextTypes: {
radioGroup: PropTypes.Requireable<any>;
};
static getDerivedStateFromProps(nextProps: RadioGroupProps): {
value: any;
} | null;
constructor(props: RadioGroupProps);
getChildContext(): {
radioGroup: {
onChange: (ev: RadioChangeEvent) => void;
value: any;
disabled: boolean | undefined;
name: string | undefined;
};
};
shouldComponentUpdate(nextProps: RadioGroupProps, nextState: RadioGroupState): boolean;
onRadioChange: (ev: RadioChangeEvent) => void;
renderGroup: ({ getPrefixCls }: ConfigConsumerProps) => JSX.Element;
render(): JSX.Element;
}
export default RadioGroup;