UNPKG

mui-custom-form

Version:

A versatile React form component utilizing MUI components and react-hook-form.

10 lines (9 loc) 393 B
import React from "react"; import { FieldValues, Path, UseFormReturn } from "react-hook-form"; import { ICustomField } from "../../types"; interface TextFieldProps<T extends FieldValues> { field: ICustomField<Path<T>>; formControl: UseFormReturn<T>; } export declare const TextField: <T extends FieldValues>({ field, formControl, }: TextFieldProps<T>) => React.JSX.Element; export {};