react-hook-form-mantine
Version:
React hook form wrapper for Mantine components
6 lines (5 loc) • 640 B
TypeScript
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;