import * as React from 'react'; import { clsx } from 'clsx'; export interface TextareaProps extends React.TextareaHTMLAttributes { label?: string; error?: string; hint?: string; } export const Textarea = React.forwardRef( ({ label, error, hint, className, id, ...props }, ref) => { const textareaId = id ?? (label ? `textarea-${label.toLowerCase().replace(/\s+/g, '-')}` : undefined); return (
{label && ( )}