Download src/components/ui/input.tsx from HonzaH/Letschat: direct link, hf CLI and curl.
- Browser
- Download file 434 Bytes
-
https://huggingface.co/spaces/HonzaH/Letschat/resolve/main/src/components/ui/input.tsx
- Command line
-
hf download hf://spaces/HonzaH/Letschat/src/components/ui/input.tsx
-
curl -L -o input.tsx https://huggingface.co/spaces/HonzaH/Letschat/resolve/main/src/components/ui/input.tsx
434 Bytes
| import React from "react" | |
| import { cn } from "lib/utils" | |
| type InputProps = React.InputHTMLAttributes<HTMLInputElement> | |
| export function Input({ className, ...props }: InputProps) { | |
| return ( | |
| <input | |
| className={cn( | |
| "w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-brand-500 focus:border-brand-500", | |
| className | |
| )} | |
| {...props} | |
| /> | |
| ) | |
| } |