UNPKG

react-hook-form-mantine

Version:
5 lines (4 loc) 443 B
import { UseControllerProps, FieldValues } from 'react-hook-form'; import { 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.Element;