Spaces:
Configuration error
Configuration error
Download frontend/src/components/features/served-host/path-form.tsx from flyingdarkdev/README: direct link, hf CLI and curl.
- Browser
- Download file 466 Bytes
-
https://huggingface.co/spaces/flyingdarkdev/README/resolve/main/frontend/src/components/features/served-host/path-form.tsx
- Command line
-
hf download hf://spaces/flyingdarkdev/README/frontend/src/components/features/served-host/path-form.tsx
-
curl -L -o path-form.tsx https://huggingface.co/spaces/flyingdarkdev/README/resolve/main/frontend/src/components/features/served-host/path-form.tsx
466 Bytes
| interface PathFormProps { | |
| ref: React.RefObject<HTMLFormElement | null>; | |
| onBlur: () => void; | |
| defaultValue: string; | |
| } | |
| export function PathForm({ ref, onBlur, defaultValue }: PathFormProps) { | |
| return ( | |
| <form ref={ref} onSubmit={(e) => e.preventDefault()} className="flex-1"> | |
| <input | |
| name="url" | |
| type="text" | |
| defaultValue={defaultValue} | |
| className="w-full bg-transparent" | |
| onBlur={onBlur} | |
| /> | |
| </form> | |
| ); | |
| } | |