Poster renders an <img> element that is visible before playback starts. Once the user plays or seeks, the poster hides permanently — pausing does not bring it back. The poster reappears when a new source is loaded.
Requires the
playback feature to be registered with the player.Import
Basic Usage
Props
Poster accepts all standard <img> element props in addition to the following:
URL of the poster image. Passed directly to the underlying
<img> element.Accessible text alternative for the image. Use an empty string (
alt="") to mark the image as decorative.CSS class name or a function that receives state and returns a class name.
Inline style or a function that receives state and returns a style object.
Custom render prop for full element control.
State Data Attributes
| Attribute | Description |
|---|---|
data-visible | Present when the poster should be shown (before first play or seek). |
CSS Styling Example
Accessibility
Unlike the native<video poster> attribute, Poster allows you to provide accessible text alternatives via alt. Describe the image (e.g., alt="Conference keynote speaker") or mark it as decorative with alt="".