UNPKG

@flexis/ui

Version:

Styleless React Components

21 lines 861 B
import { InputHTMLAttributes, Ref, ChangeEvent, PureComponent } from 'react'; import PropTypes from 'prop-types'; import { CombinePropsAndAttributes } from '../../helpers'; import { Primitive, InputValue } from '../common/types'; interface ISelfProps { elementRef?: Ref<HTMLInputElement>; value?: InputValue; onChange?(value: Primitive, event: ChangeEvent): void; } export declare type IProps = CombinePropsAndAttributes<ISelfProps, InputHTMLAttributes<HTMLInputElement>>; export default class Radio extends PureComponent<IProps> { static propTypes: { elementRef: PropTypes.Requireable<(...args: any[]) => any>; onChange: PropTypes.Requireable<(...args: any[]) => any>; value: PropTypes.Requireable<string | number>; }; render(): JSX.Element; private onChange; } export {}; //# sourceMappingURL=Radio.d.ts.map