import { JSX } from "preact"; interface TextareaProps extends JSX.TextareaHTMLAttributes { error?: boolean; label?: string; } export default function Textarea({ error = false, label, className = "", ...props }: TextareaProps) { const textareaClasses = `w-full block box-border rounded border ${error ? "border-red-600" : "border-gray-300"} text-sm outline-none h-full p-1.5 resize-none ${className}`; if (label) { return (