@start-base/react-form-elements
Version:
Simplify form elements and form management. Selection of user friendly inputs and wide customization abilities to match your design and functionality.
22 lines (19 loc) • 665 B
TypeScript
import React from 'react';
import { FieldError } from 'react-hook-form';
interface RadioProps {
name: string;
onChange: (event: React.ChangeEvent<HTMLInputElement>) => void;
value: string;
label?: string | React.ReactNode;
checked?: boolean;
inputClassName?: string;
labelClassName?: string;
errorClassName?: string;
disabled?: boolean;
error?: boolean | string | {
message?: string;
} | null | undefined | FieldError;
[rest: string]: any;
}
declare const Radio: React.ForwardRefExoticComponent<Omit<RadioProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
export { type RadioProps, Radio as default };