react-hook-form-mantine
Version:
React hook form wrapper for Mantine components
18 lines (17 loc) • 1.05 kB
TypeScript
import { type UseControllerProps, type FieldValues } from "react-hook-form";
import { type ChipProps as $ChipProps } from "@mantine/core";
export type ChipProps<T extends FieldValues> = UseControllerProps<T> & Omit<$ChipProps, "value" | "defaultValue">;
export declare const Chip: {
<T extends FieldValues>({ name, control, defaultValue, rules, shouldUnregister, onChange, ...props }: ChipProps<T>): import("react/jsx-runtime").JSX.Element;
Group: <T_1 extends FieldValues>({ name, control, defaultValue, rules, shouldUnregister, onChange, ...props }: import("./ChipGroup/ChipGroup").ChipGroupProps<T_1>) => import("react/jsx-runtime").JSX.Element;
Item: import("@mantine/core").MantineComponent<{
props: $ChipProps;
ref: HTMLInputElement;
stylesNames: import("@mantine/core").ChipStylesNames;
vars: import("@mantine/core").ChipCssVariables;
variant: import("@mantine/core").ChipVariant;
staticComponents: {
Group: typeof import("@mantine/core").ChipGroup;
};
}>;
};