Download apps/web/src/components/ui/input.tsx from ineeds/now: direct link, hf CLI and curl.
- Browser
- Download file 700 Bytes
-
https://huggingface.co/spaces/ineeds/now/resolve/main/apps/web/src/components/ui/input.tsx
- Command line
-
hf download hf://spaces/ineeds/now/apps/web/src/components/ui/input.tsx
-
curl -L -o input.tsx https://huggingface.co/spaces/ineeds/now/resolve/main/apps/web/src/components/ui/input.tsx
700 Bytes
| import * as React from "react"; | |
| import { cn } from "@/lib/utils"; | |
| const Input = React.forwardRef<HTMLInputElement, React.ComponentProps<"input">>( | |
| ({ className, type, ...props }, ref) => { | |
| return ( | |
| <input | |
| type={type} | |
| className={cn( | |
| "flex h-10 w-full rounded-lg border border-input bg-card px-3.5 py-2 text-sm shadow-sm transition-all placeholder:text-muted-foreground/80 focus-visible:border-ring focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/25 disabled:cursor-not-allowed disabled:opacity-50", | |
| className | |
| )} | |
| ref={ref} | |
| {...props} | |
| /> | |
| ); | |
| } | |
| ); | |
| Input.displayName = "Input"; | |
| export { Input }; | |