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