import * as React from 'react' import type { z } from 'zod/v4' import type { TextareaProps, TextareaVariantEnum } from '../types' import { cn } from '../utils' import { Container } from './container' import { Label } from './label' import { RequiredIndicator } from './required-indicator' import { Text } from './text' const textareaVariantClasses: Record, string> = { ghost: 'p-0', primary: 'border rounded-default bg-background px-3 py-2 focus-visible:ring-2 focus-visible:ring-accent' } const Textarea = React.forwardRef( ( { id, label, description, variant = 'primary', required, placeholder, rows = 3, value, onChange, onKeyDown, defaultValue, disabled, maxLength, autoFocus = false, className }, ref ) => { return ( {label && } {/* TODO: remove className */}