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