UNPKG

react-hook-form-mantine

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