"use client"; import { TextareaHTMLAttributes, forwardRef } from "react"; interface TextareaProps extends TextareaHTMLAttributes { label?: string; error?: string; showCharCount?: boolean; maxLength?: number; } const Textarea = forwardRef( ({ label, error, showCharCount, maxLength, className = "", value, ...props }, ref) => { const charCount = typeof value === "string" ? value.length : 0; return (
{label && ( )}