Download code/frontend/packages/ui/src/components/input.tsx from Jiali9/Affect-Atlas: direct link, hf CLI and curl.
- Browser
- Download file 994 Bytes
-
https://huggingface.co/Jiali9/Affect-Atlas/resolve/main/code/frontend/packages/ui/src/components/input.tsx
- Command line
-
hf download hf://Jiali9/Affect-Atlas/code/frontend/packages/ui/src/components/input.tsx
-
curl -L -o input.tsx https://huggingface.co/Jiali9/Affect-Atlas/resolve/main/code/frontend/packages/ui/src/components/input.tsx
994 Bytes
| import * as React from "react" | |
| import { Input as InputPrimitive } from "@base-ui/react/input" | |
| import { cn } from "cn" | |
| function Input({ className, type, ...props }: React.ComponentProps<"input">) { | |
| return ( | |
| <InputPrimitive | |
| type={type} | |
| data-slot="input" | |
| className={cn( | |
| "h-7 w-full min-w-0 rounded-md border border-input bg-input/20 px-2 py-0.5 text-sm transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-xs/relaxed file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/30 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-2 aria-invalid:ring-destructive/20 md:text-xs/relaxed dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40", | |
| className | |
| )} | |
| {...props} | |
| /> | |
| ) | |
| } | |
| export { Input } | |