@ladg/rhfmui
Version:
The integration of MUI components with React hook form.
20 lines • 775 B
TypeScript
import { TextFieldProps } from '@mui/material/TextField';
import { JSX, ReactNode } from 'react';
import { RegisterOptions, UseFormReturn } from 'react-hook-form';
type RHFMuiSelectMultipleProps = TextFieldProps & {
rhfinstance: UseFormReturn<any>;
rhf_rules?: Omit<RegisterOptions<any, any>, 'valueAsNumber' | 'valueAsDate' | 'setValueAs' | 'disabled'>;
name: string;
label: string;
multiple?: boolean;
children: ReactNode;
permanentMessage?: string | (() => JSX.Element);
onChangeExtraHandler?: React.ChangeEventHandler<HTMLInputElement | HTMLTextAreaElement>;
};
export declare const RHFMuiSelectMultiple: React.FC<RHFMuiSelectMultipleProps>;
export {};
/**
* features implemented:
*
*/
//# sourceMappingURL=RHFMuiSelectMultiple.d.ts.map