Spaces:
Paused
Paused
Download components/ui/shadcn/input.tsx from Leon4gr45/paper2code-cli: direct link, hf CLI and curl.
- Browser
- Download file 831 Bytes
-
https://huggingface.co/spaces/Leon4gr45/paper2code-cli/resolve/main/components/ui/shadcn/input.tsx
- Command line
-
hf download hf://spaces/Leon4gr45/paper2code-cli/components/ui/shadcn/input.tsx
-
curl -L -o input.tsx https://huggingface.co/spaces/Leon4gr45/paper2code-cli/resolve/main/components/ui/shadcn/input.tsx
831 Bytes
| import { forwardRef } from "react"; | |
| import { cn } from "@/utils/cn"; | |
| const Input = forwardRef< | |
| HTMLInputElement, | |
| React.ComponentPropsWithoutRef<"input"> | |
| >(({ className, ...props }, ref) => { | |
| return ( | |
| <label | |
| className={cn( | |
| "py-8 px-12 rounded-8 transition-all w-full block gap-4 cursor-text", | |
| "relative bg-accent-white", | |
| "inside-border before:border-black-alpha-8 hover:before:border-black-alpha-12 hover:bg-black-alpha-2 focus-within:!bg-accent-white focus-within:before:!border-heat-100 focus-within:before:!border-[1.25px]", | |
| "text-body-medium", | |
| className, | |
| )} | |
| > | |
| <input | |
| ref={ref} | |
| className="outline-none w-full resize-none bg-transparent" | |
| {...props} | |
| /> | |
| </label> | |
| ); | |
| }); | |
| Input.displayName = "Input"; | |
| export default Input; | |