import clsx from 'clsx'; import { Label } from '../Input/Label'; import { type Colors, type Editor, type ErrorProcessing, type TextArea as TextAreaStyle } from '../props'; import { ErrorField } from './ErrorField'; export interface TextAreaProps extends Editor, ErrorProcessing, Colors, TextAreaStyle { /** 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, rows, dense, noBorder, noOutline, noResize, className, fitContent, error, colors = 'clr-input', ...restProps }: TextAreaProps) { return (