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