UNPKG

react-hook-form-mantine

Version:
5 lines (4 loc) 487 B
import { UseControllerProps, FieldValues } from 'react-hook-form'; import { SegmentedControlProps as $SegmentedControlProps } from '@mantine/core'; export type SegmentedControlProps<T extends FieldValues> = UseControllerProps<T> & Omit<$SegmentedControlProps, "values" | "defaultValues">; export declare function SegmentedControl<T extends FieldValues>({ name, control, defaultValue, rules, shouldUnregister, onChange, ...props }: SegmentedControlProps<T>): import("react").JSX.Element;