import clsx from 'clsx'; import { Label } from './label'; import { type Editor, type ErrorProcessing, type Titled } from '../props'; import { ErrorField } from './error-field'; export interface TextAreaProps extends Editor, ErrorProcessing, Titled, React.ComponentProps<'textarea'> { /** Indicates that the input should be transparent. */ transparent?: boolean; /** Indicates that padding should be minimal. */ dense?: boolean; /** Disable resize when content overflows. */ noResize?: boolean; /** Disable resize to fit content. */ fitContent?: boolean; } /** * Displays a customizable textarea with a label. */ export function TextArea({ id, label, required, transparent, rows, dense, noBorder, noOutline, noResize, className, fitContent, error, ...restProps }: TextAreaProps) { return (