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