UNPKG

triangulo-digital-components

Version:

Triângulo Digital Components Library - Design System do Triângulo Digital

25 lines (24 loc) 1.72 kB
import { Slot } from '@radix-ui/react-slot'; import { ControllerProps, FieldPath, FieldValues } from 'react-hook-form'; import * as React from 'react'; import * as LabelPrimitive from '@radix-ui/react-label'; declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues = TFieldValues>(props: import('react-hook-form').FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React.JSX.Element; declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>) => import("react/jsx-runtime").JSX.Element; declare const useFormField: () => { invalid: boolean; isDirty: boolean; isTouched: boolean; isValidating: boolean; error?: import('react-hook-form').FieldError; id: string; name: string; formItemId: string; formDescriptionId: string; formMessageId: string; }; declare function FormItem({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element; declare function FormLabel({ className, ...props }: React.ComponentProps<typeof LabelPrimitive.Root>): import("react/jsx-runtime").JSX.Element; declare function FormControl({ ...props }: React.ComponentProps<typeof Slot>): import("react/jsx-runtime").JSX.Element; declare function FormDescription({ className, ...props }: React.ComponentProps<'p'>): import("react/jsx-runtime").JSX.Element; declare function FormMessage({ className, ...props }: React.ComponentProps<'p'>): import("react/jsx-runtime").JSX.Element | null; export { useFormField, Form, FormItem, FormLabel, FormControl, FormDescription, FormMessage, FormField, };