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