UNPKG

react-hook-form-mantine

Version:
5 lines (4 loc) 470 B
import { type UseControllerProps, type FieldValues } from "react-hook-form"; import { type FileInputProps as $FileInputProps } from "@mantine/core"; export type FileInputProps<T extends FieldValues> = UseControllerProps<T> & Omit<$FileInputProps, "value" | "defaultValue">; export declare function FileInput<T extends FieldValues>({ name, control, defaultValue, rules, shouldUnregister, multiple, ...props }: FileInputProps<T>): import("react/jsx-runtime").JSX.Element;