Download webui/src/components/ui/Input.tsx from xjackkx/rg: direct link, hf CLI and curl.
- Browser
- Download file 337 Bytes
-
https://huggingface.co/spaces/xjackkx/rg/resolve/main/webui/src/components/ui/Input.tsx
- Command line
-
hf download hf://spaces/xjackkx/rg/webui/src/components/ui/Input.tsx
-
curl -L -o Input.tsx https://huggingface.co/spaces/xjackkx/rg/resolve/main/webui/src/components/ui/Input.tsx
337 Bytes
| import type { InputHTMLAttributes } from "react"; | |
| import { cn } from "../../lib/cn"; | |
| type InputProps = InputHTMLAttributes<HTMLInputElement> & { | |
| invalid?: boolean; | |
| }; | |
| export function Input({ className, invalid, ...props }: InputProps) { | |
| return <input className={cn("input", invalid && "input-invalid", className)} {...props} />; | |
| } | |