import { type Editor, type ErrorProcessing, type Titled } from '../props'; import { cn } from '../utils'; import { ErrorField } from './error-field'; import { Label } from './label'; 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, transparent, dense, noBorder, noOutline, noResize, className, fitContent, disabled, error, ...restProps }: TextAreaProps) { return (