Download src/components/ui/input.tsx from Zero124/VR-MEDIA: direct link, hf CLI and curl.
- Browser
- Download file 1.17 kB
-
https://huggingface.co/spaces/Zero124/VR-MEDIA/resolve/main/src/components/ui/input.tsx
- Command line
-
hf download hf://spaces/Zero124/VR-MEDIA/src/components/ui/input.tsx
-
curl -L -o input.tsx https://huggingface.co/spaces/Zero124/VR-MEDIA/resolve/main/src/components/ui/input.tsx
1.17 kB
| import * as React from "react" | |
| import { cn } from "@/lib/utils" | |
| /** | |
| * Text input per §4: sharp corners (0px radius), transparent background, | |
| * hairline bottom border that turns Primary Blue on focus, 16px Roboto, | |
| * #606060 placeholder at 0.7 opacity, muted disabled state. | |
| */ | |
| function Input({ className, type, ...props }: React.ComponentProps<"input">) { | |
| return ( | |
| <input | |
| type={type} | |
| data-slot="input" | |
| className={cn( | |
| "flex h-10 w-full min-w-0 rounded-none border-0 border-b border-white/15 bg-transparent px-0 py-1 text-base leading-[22px] text-foreground outline-none transition-colors", | |
| "placeholder:text-[#606060] placeholder:opacity-70", | |
| "selection:bg-[#065fd4] selection:text-white", | |
| "focus-visible:border-b-[#065fd4]", | |
| "disabled:cursor-not-allowed disabled:border-white/10 disabled:bg-white/[0.05] disabled:text-[#aaaaaa]", | |
| "aria-invalid:border-b-[#e1002d]", | |
| "file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground", | |
| className | |
| )} | |
| {...props} | |
| /> | |
| ) | |
| } | |
| export { Input } | |