UNPKG

@accelint/design-toolkit

Version:

An open-source component library to serve as part of the entire ecosystem of UX for Accelint.

20 lines (17 loc) 705 B
import { RefAttributes } from 'react'; import { TextFieldProps, TextAreaProps, FieldErrorProps } from 'react-aria-components'; type TextAreaFieldProps = Omit<TextFieldProps, 'children' | 'className'> & RefAttributes<HTMLDivElement> & { classNames?: { field?: TextFieldProps['className']; label?: string; input?: TextAreaProps['className']; description?: string; error?: FieldErrorProps['className']; }; label?: string; inputProps?: Omit<TextAreaProps, 'className'> & RefAttributes<HTMLTextAreaElement>; description?: string; errorMessage?: FieldErrorProps['children']; size?: 'medium' | 'small'; }; export type { TextAreaFieldProps };