Download webui/src/components/ui/Textarea.tsx from xjackkx/rg: direct link, hf CLI and curl.
- Browser
- Download file 361 Bytes
-
https://huggingface.co/spaces/xjackkx/rg/resolve/main/webui/src/components/ui/Textarea.tsx
- Command line
-
hf download hf://spaces/xjackkx/rg/webui/src/components/ui/Textarea.tsx
-
curl -L -o Textarea.tsx https://huggingface.co/spaces/xjackkx/rg/resolve/main/webui/src/components/ui/Textarea.tsx
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} />; | |
| } | |