import type { ComponentProps } from 'react'; import TextareaAutosize from 'react-textarea-autosize'; /** * Size of the text areas. */ type TextAreaSize = 'xSmall' | 'small' | 'medium' | 'large'; /** * Variant of the text area. */ type TextAreaVariant = 'default' | 'monospace'; type TextAreaProps = Omit, 'className'> & { /** * Size of the text area. */ size?: TextAreaSize; /** * The variant of the text area. */ variant?: TextAreaVariant; /** * Surface level of the text area. */ surfaceLevel?: '0' | '1' | '2'; /** * Indicates if the text area has an error. */ error?: boolean | string; /** * The resize direction of the text area. Shortcut for setting `resize` CSS property on the inner `