react-hook-form-mantine
Version:
React hook form wrapper for Mantine components
21 lines (20 loc) • 1.25 kB
TypeScript
import { type FieldValues, type UseControllerProps } from "react-hook-form";
import { type CheckboxProps as $CheckboxProps } from "@mantine/core";
export type CheckboxProps<T extends FieldValues> = UseControllerProps<T> & Omit<$CheckboxProps, "checked" | "defaultValue">;
export declare const Checkbox: {
<T extends FieldValues>({ name, control, defaultValue, rules, shouldUnregister, onChange, ...props }: CheckboxProps<T>): import("react/jsx-runtime").JSX.Element;
Group: <T_1 extends FieldValues>({ name, control, defaultValue, rules, shouldUnregister, onChange, ...props }: import("./CheckBoxGroup/CheckBoxGroup").CheckboxGroupProps<T_1>) => import("react/jsx-runtime").JSX.Element;
Item: import("@mantine/core").MantineComponent<{
props: $CheckboxProps;
ref: HTMLInputElement;
stylesNames: import("@mantine/core").CheckboxStylesNames;
vars: import("@mantine/core").CheckboxCssVariables;
staticComponents: {
Group: import("@mantine/core").MantineComponent<{
props: import("@mantine/core").CheckboxGroupProps;
ref: HTMLDivElement;
stylesNames: import("@mantine/core").InputWrapperStylesNames;
}>;
};
}>;
};