react-hook-form-mantine
Version:
React hook form wrapper for Mantine components
22 lines (21 loc) • 1.11 kB
TypeScript
import { type UseControllerProps, type FieldValues } from "react-hook-form";
import { type RadioProps as $RadioProps } from "@mantine/core";
import { RadioGroup } from "./RadioGroup/RadioGroup";
export type RadioProps<T extends FieldValues> = UseControllerProps<T> & Omit<$RadioProps, "value" | "defaultValue">;
export declare function Radio<T extends FieldValues>({ name, control, defaultValue, rules, shouldUnregister, onChange, ...props }: RadioProps<T>): import("react/jsx-runtime").JSX.Element;
export declare namespace Radio {
var Group: typeof RadioGroup;
var Item: import("@mantine/core").MantineComponent<{
props: $RadioProps;
ref: HTMLInputElement;
stylesNames: import("@mantine/core").RadioStylesNames;
vars: import("@mantine/core").RadioCssVariables;
staticComponents: {
Group: import("@mantine/core").MantineComponent<{
props: import("@mantine/core").RadioGroupProps;
ref: HTMLDivElement;
stylesNames: import("@mantine/core").InputWrapperStylesNames;
}>;
};
}>;
}