UNPKG

react-hook-form-mantine

Version:
5 lines (4 loc) 467 B
import { UseControllerProps, FieldValues } from 'react-hook-form'; import { SwitchGroupProps as $SwitchGroupProps } from '@mantine/core'; export type SwitchGroupProps<T extends FieldValues> = UseControllerProps<T> & Omit<$SwitchGroupProps, "value" | "checked" | "defaultValue">; export declare function SwitchGroup<T extends FieldValues>({ name, control, defaultValue, rules, shouldUnregister, onChange, ...props }: SwitchGroupProps<T>): import("react").JSX.Element;