typescript import { TextareaHTMLAttributes, forwardRef } from 'react'; import { clsx } from 'clsx'; interface TextAreaProps extends TextareaHTMLAttributes { label?: string; charCount?: number; maxChars?: number; } export const TextArea = forwardRef(({ className, label, charCount, maxChars, ...props }, ref) => ( {label && ( {label} {charCount !== undefined && maxChars && ( maxChars ? 'text-red-600' : 'text-gray-500')}> {charCount} / {maxChars} )} )} ));