@accelint/design-toolkit
Version:
An open-source component library to serve as part of the entire ecosystem of UX for Accelint.
29 lines (26 loc) • 860 B
TypeScript
import * as react_jsx_runtime from 'react/jsx-runtime';
import { TextAreaFieldProps } from './types.js';
import 'react';
import 'react-aria-components';
/**
* TextAreaField - A multi-line text input component with label and validation
*
* Provides a complete form field experience for longer text content with integrated
* label, description, and error message components. Handles validation states and
* accessibility automatically while supporting resizable text areas.
*
* @example
* // Basic text area field
* <TextAreaField label="Comments" />
*
* @example
* // Text area with validation
* <TextAreaField
* isInvalid={true}
* errorMessage='Message is required'
* label='Foo'
* isRequired
* />
*/
declare function TextAreaField({ ref, ...props }: TextAreaFieldProps): react_jsx_runtime.JSX.Element;
export { TextAreaField };