UNPKG

ivt

Version:

Ivt Components Library

31 lines (28 loc) 2.14 kB
import * as class_variance_authority_types from 'class-variance-authority/types'; import * as react_jsx_runtime from 'react/jsx-runtime'; import { VariantProps } from 'class-variance-authority'; import React__default from 'react'; import { Label } from '../label/index.js'; import '@radix-ui/react-label'; declare function FieldSet({ className, ...props }: React__default.ComponentProps<"fieldset">): react_jsx_runtime.JSX.Element; declare function FieldLegend({ className, variant, ...props }: React__default.ComponentProps<"legend"> & { variant?: "legend" | "label"; }): react_jsx_runtime.JSX.Element; declare function FieldGroup({ className, ...props }: React__default.ComponentProps<"div">): react_jsx_runtime.JSX.Element; declare const fieldVariants: (props?: ({ orientation?: "vertical" | "horizontal" | "responsive" | null | undefined; } & class_variance_authority_types.ClassProp) | undefined) => string; declare function Field({ className, orientation, ...props }: React__default.ComponentProps<"div"> & VariantProps<typeof fieldVariants>): react_jsx_runtime.JSX.Element; declare function FieldContent({ className, ...props }: React__default.ComponentProps<"div">): react_jsx_runtime.JSX.Element; declare function FieldLabel({ className, ...props }: React__default.ComponentProps<typeof Label>): react_jsx_runtime.JSX.Element; declare function FieldTitle({ className, ...props }: React__default.ComponentProps<"div">): react_jsx_runtime.JSX.Element; declare function FieldDescription({ className, ...props }: React__default.ComponentProps<"p">): react_jsx_runtime.JSX.Element; declare function FieldSeparator({ children, className, ...props }: React__default.ComponentProps<"div"> & { children?: React__default.ReactNode; }): react_jsx_runtime.JSX.Element; declare function FieldError({ className, children, errors, ...props }: React__default.ComponentProps<"div"> & { errors?: Array<{ message?: string; } | undefined>; }): react_jsx_runtime.JSX.Element | null; export { Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle };