UNPKG

@ladg/rhfmui

Version:

The integration of MUI components with React hook form.

19 lines 743 B
import { TextFieldProps } from '@mui/material/TextField'; import { JSX, ReactNode } from 'react'; import { RegisterOptions, UseFormReturn } from 'react-hook-form'; type RHFMuiSelectSingleProps = TextFieldProps & { rhfinstance: UseFormReturn<any>; rhf_rules?: Omit<RegisterOptions<any, any>, 'valueAsNumber' | 'valueAsDate' | 'setValueAs' | 'disabled'>; name: string; label: string; children: ReactNode; permanentMessage?: string | (() => JSX.Element); onChangeExtraHandler?: React.ChangeEventHandler<HTMLInputElement | HTMLTextAreaElement>; }; export declare const RHFMuiSelectSingle: React.FC<RHFMuiSelectSingleProps>; export {}; /** * features implemented: * */ //# sourceMappingURL=RHFMuiSelectSingle.d.ts.map