rg / webui /src /components /ui /Textarea.tsx
xjackkx's picture
Upload 307 files
ea775bd verified
Raw History Blame Contribute Delete
361 Bytes
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} />;
}