File size: 361 Bytes
ea775bd | 1 2 3 4 5 6 7 8 9 10 11 | import type { TextareaHTMLAttributes } from "react";
import { cn } from "../../lib/cn";
type TextareaProps = TextareaHTMLAttributes<HTMLTextAreaElement> & {
invalid?: boolean;
};
export function Textarea({ className, invalid, ...props }: TextareaProps) {
return <textarea className={cn("textarea", invalid && "input-invalid", className)} {...props} />;
}
|