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