Put it inside the heading of a hero. The image shows at once; the video takes over at its first frame.
The sample also uses Button. One command adds them with this item:
film-hero.tsx
TextMedia
<span>| Prop | Type | Default | Description |
|---|---|---|---|
| paused | boolean | — | The pause of the user or the page (controlled). |
| default | boolean | — | The first pause when paused is not given (uncontrolled). Default false. |
| on | — | Called when the pause changes. | |
| pause | boolean | — | Hold the motion while a mouse is over the item, or keyboard focus is on the link or button around it (or in it). Default true. |
| children | ReactNode | — | The text. It stays real text: selectable, found by search, read by screen readers. |
| image | string | — | A picture inside the letters. With video, it is the still frame (the poster). |
| video | string | — | A video inside the letters: muted, looped, and inline. It plays only on screen. |
| focal | MEDIA_TEXT_CENTER | The point of the picture that stays in view when it is cropped, 0 to 1. Default the center. | |
| locale | string | — | The BCP 47 locale of the text, for the letter split and the case of text-transform. |
| ...props | <span> attributes | — | Every other attribute goes to the <span>, with a ref. |









