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