UNPKG

react-hook-form-mantine

Version:
5 lines (4 loc) 494 B
import { type UseControllerProps, type FieldValues } from "react-hook-form"; import { type 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-runtime").JSX.Element;