react-hook-form-mantine
Version:
React hook form wrapper for Mantine components
5 lines (4 loc) • 443 B
TypeScript
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;