Spaces:
Configuration error
Configuration error
Download docs/src/components/Demo/Demo.tsx from flyingdarkdev/README: direct link, hf CLI and curl.
- Browser
- Download file 522 Bytes
-
https://huggingface.co/spaces/flyingdarkdev/README/resolve/main/docs/src/components/Demo/Demo.tsx
- Command line
-
hf download hf://spaces/flyingdarkdev/README/docs/src/components/Demo/Demo.tsx
-
curl -L -o Demo.tsx https://huggingface.co/spaces/flyingdarkdev/README/resolve/main/docs/src/components/Demo/Demo.tsx
522 Bytes
| import React from "react"; | |
| import styles from "./index.module.css"; | |
| export function Demo() { | |
| const videoRef = React.useRef<HTMLVideoElement>(null); | |
| return ( | |
| <video | |
| playsInline | |
| autoPlay={true} | |
| loop | |
| className={styles.demo} | |
| muted | |
| onMouseOver={() => (videoRef.current.controls = true)} | |
| onMouseOut={() => (videoRef.current.controls = false)} | |
| ref={videoRef} | |
| > | |
| <source src="img/teaser.mp4" type="video/mp4"></source> | |
| </video> | |
| ); | |
| } | |