import React, { forwardRef, useId } from 'react'; import { cn } from '@/utils/utils'; export interface TextareaProps extends React.TextareaHTMLAttributes { label?: string; error?: string; } export const Textarea = forwardRef( ({ className, label, error, id, rows = 4, ...props }, ref) => { const autoId = useId(); const textareaId = id || autoId; return (
{label && ( )}