UNPKG

@vela-ui/react

Version:

Vela UI React components

16 lines (13 loc) 1.1 kB
import * as react_jsx_runtime from 'react/jsx-runtime'; import * as tailwind_variants from 'tailwind-variants'; import { VariantProps } from 'tailwind-variants'; import { TextField as TextField$1 } from 'react-aria-components'; import { FieldProps } from './field.js'; import { InputGroupProps } from './input.js'; import 'tailwind-merge'; declare const textFieldVariants: tailwind_variants.TVReturnType<{} | {} | {}, undefined, "group flex flex-col gap-2", {} | {}, undefined, tailwind_variants.TVReturnType<unknown, undefined, "group flex flex-col gap-2", unknown, unknown, undefined>>; interface TextFieldProps extends FieldProps, React.ComponentProps<typeof TextField$1>, VariantProps<typeof textFieldVariants>, Pick<InputGroupProps, "size" | "startElement" | "endElement" | "startAddon" | "endAddon"> { inputClassName?: string; } declare function TextField({ placeholder, label, description, errorMessage, size, className, inputClassName, startElement, endElement, startAddon, endAddon, ...props }: TextFieldProps): react_jsx_runtime.JSX.Element; export { TextField, type TextFieldProps };