UNPKG

react-hook-form-mantine

Version:
6 lines (5 loc) 640 B
import { CheckboxGroupProps as $CheckboxGroupProps } from '@mantine/core'; import { FieldValues, UseControllerProps } from 'react-hook-form'; export type CheckboxGroupProps<T extends FieldValues> = UseControllerProps<T> & Omit<$CheckboxGroupProps, "checked" | "defaultValue">; /** Checkbox group that manages selection state via react-hook-form. Children should use `Checkbox.Item` (raw Mantine Checkbox), not the wrapped `Checkbox` component. */ export declare const CheckboxGroup: <T extends FieldValues>({ name, control, defaultValue, rules, shouldUnregister, onChange, ...props }: CheckboxGroupProps<T>) => import("react").JSX.Element;