UNPKG

rehance-forms

Version:
27 lines (26 loc) 767 B
import * as React from "react"; export declare type RenderRadio = (props: RenderRadioProps) => React.ReactNode; export declare type RadioProps = { className?: string; activeClassName?: string; disabledClassName?: string; disabled?: boolean; value: any; allowDeselect?: boolean; onChange?(value: boolean): void; children?: React.ReactNode | RenderRadio; }; export declare type RenderRadioProps = { value: any; groupValue: any; selected: boolean; disabled: boolean; select(): void; deselect(): void; }; export declare const Radio: React.ForwardRefExoticComponent<{ children?: React.ReactNode; } & RadioProps & { name: string; keepChangesOnUnmount?: boolean | undefined; } & React.RefAttributes<any>>;