import type React from 'react'; import type { BaseInputProps, GlobalHTMLAttributes } from './types'; export interface TextAreaProps extends GlobalHTMLAttributes, BaseInputProps { /** * @default 'top-label' */ variant?: 'top-label' | 'floating-label'; /** * The name of the textarea to use when submitting the form. */ name: string; /** * Placeholder text to show in the textarea when it is empty. */ placeholder?: string; /** * Minimum length of the textarea value. */ minLength?: number; /** * Maximum length of the textarea value. */ maxLength?: number; /** * The number of visible text lines to show in the textarea. * * @default 2 */ rows?: number; /** * Controls whether and how text input is automatically capitalized as it is entered by the user. */ autoCapitalize?: 'none' | 'sentences' | 'words' | 'characters'; /** * Controls whether the element may be checked for spelling errors. */ spellCheck?: boolean; /** * Enable or disable autocomplete in the textarea. */ autoComplete?: 'off' | 'on'; /** * Set the error message of a textarea and mark it invalid. */ errorMessage?: string; /** * Force the textarea to be invalid. * * @default false */ 'aria-invalid'?: boolean; /** * Default value of an uncontrolled textarea. */ defaultValue?: string; /** * Value of the textarea. * * Makes the textarea controlled. */ value?: string; /** * Fires immediately when the textarea's value is changed by the user (for example, it fires on every keystroke). */ onChange?: React.ChangeEventHandler; } /** * TextArea should be used when the information is known by the user. * It can be used by itself or in combination with any other inputs. */ export declare const TextArea: React.ForwardRefExoticComponent>;