UNPKG

yqcloud-ui

Version:

An enterprise-class UI design language and React-based implementation

26 lines (25 loc) 924 B
/// <reference types="react" /> import * as React from 'react'; import PropTypes from 'prop-types'; import { RadioGroupProps, RadioGroupState, RadioChangeEvent } from './interface'; export default class RadioGroup extends React.Component<RadioGroupProps, RadioGroupState> { static defaultProps: { disabled: boolean; }; static childContextTypes: { radioGroup: PropTypes.Requireable<any>; }; constructor(props: RadioGroupProps); getChildContext(): { radioGroup: { onChange: (ev: RadioChangeEvent) => void; value: any; disabled: boolean | undefined; name: string | undefined; }; }; componentWillReceiveProps(nextProps: RadioGroupProps): void; shouldComponentUpdate(nextProps: RadioGroupProps, nextState: RadioGroupState): boolean; onRadioChange: (ev: RadioChangeEvent) => void; render(): JSX.Element; }