UNPKG

react-hook-form-mantine

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