import { Nullable } from '@viasat/beam-shared/utils/types'; import { ThemeTypes } from '@viasat/beam-shared/utils/constants'; import { FormValidator } from '@viasat/beam-shared/components/form'; import * as React from 'react'; export interface TextAreaProps extends React.ComponentPropsWithRef<'textarea'> { /** * Specify the height of TextArea */ rows?: number; /** * Specify the width of TextArea */ cols?: number; /** * Specify placeholder text for TextArea */ placeholder?: string; /** * Specify HelperText for TextArea */ helperText?: Nullable; /** * Specify if TextArea is a required input * @default false */ required?: boolean; /** * Specify if the TextArea displays with an asterisk * @default false */ hideRequiredMarker?: boolean; /** * Specify Label for TextArea */ label?: Nullable; /** * Specify error text and display error state of a TextArea */ error?: boolean | string; /** * Specify if TextArea displays in a read-only state * @default false */ readOnly?: boolean; /** * Specify if TextArea displays in a disabled state * @default false */ disabled?: boolean; /** * Specify if TextArea is fluid * @default false */ fluid?: boolean; /** * Specify the width of TextArea */ width?: string; /** * Specify the theme of the TextArea. By default it inherits the theme from the parent */ theme?: ThemeTypes; /** * Specify form validation rules for TextArea */ validationRules?: Array; /** * Specify if TextArea can be manually resized * @default false */ hideResize?: boolean; /** * Specify the maximum character count for the TextArea */ maxCount?: number; /** * Specify if the TextArea automatically resizes to fit the text * @default false */ autoResize?: boolean; } export declare const TextArea: React.ForwardRefExoticComponent & React.RefAttributes>; export default TextArea;