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