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