import { type ButtonHTMLAttributes, type ReactNode, type TextareaHTMLAttributes } from 'react'; export interface TextareaProps extends TextareaHTMLAttributes { /** When true, renders red error border & ring */ invalid?: boolean; /** Label text displayed above the textarea */ label?: string; /** Label scale forwarded to FieldWrapper ('large' = text-h4 for designs with body-scale field titles) */ labelVariant?: 'default' | 'large'; /** Error message displayed below the textarea */ error?: string; /** Element rendered at the right edge of the field (e.g. send icon). */ endIcon?: ReactNode; /** * When true, `endIcon` is wrapped in a real `