Spaces:
Running
Running
Download src/components/ui/input.tsx from evalstate/mcp-webcam: direct link, hf CLI and curl.
- Browser
- Download file 666 Bytes
-
https://huggingface.co/spaces/evalstate/mcp-webcam/resolve/main/src/components/ui/input.tsx
- Command line
-
hf download hf://spaces/evalstate/mcp-webcam/src/components/ui/input.tsx
-
curl -L -o input.tsx https://huggingface.co/spaces/evalstate/mcp-webcam/resolve/main/src/components/ui/input.tsx
666 Bytes
| import * as React from 'react'; | |
| import { cn } from '@/lib/utils'; | |
| export const Input = React.forwardRef<HTMLInputElement, React.InputHTMLAttributes<HTMLInputElement>>( | |
| ({ className, type, ...props }, ref) => ( | |
| <input | |
| ref={ref} | |
| type={type} | |
| className={cn( | |
| 'flex h-8 w-full rounded-lg border border-line bg-panel-2/70 px-2.5 py-1 text-xs text-fg placeholder:text-muted-2 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-push/40 focus-visible:border-line-strong disabled:cursor-not-allowed disabled:opacity-50', | |
| className, | |
| )} | |
| {...props} | |
| /> | |
| ), | |
| ); | |
| Input.displayName = 'Input'; | |