UNPKG

react-hook-form-mantine

Version:
5 lines (4 loc) 514 B
import { type UseControllerProps, type FieldValues } from "react-hook-form"; import { type 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-runtime").JSX.Element;