Thumbnail resolves and displays a thumbnail image for a given time position. It supports three source formats: VTT text tracks, JSON arrays, and JSON sprite arrays.
Import
Basic Usage
Text Track (VTT)
Add a<track> with kind="metadata" and label="thumbnails" to your video element. Thumbnail reads the cues automatically via the player store.
JSON Thumbnails
Pass a pre-parsed array of thumbnail images directly. This works withoutPlayer.Provider.
Props
The media time (in seconds) to resolve a thumbnail for. Defaults to
0.Pre-parsed thumbnail images. When provided, bypasses automatic
<track> detection. Each item is { url, startTime, endTime? } or { url, startTime, endTime?, width, height, coords } for sprites.CORS attribute passed to the underlying
<img> element.Loading strategy passed to the underlying
<img> element.Fetch priority hint passed to the underlying
<img> element.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-hidden | Present when no thumbnail is available for the given time. |
data-loading | Present while the thumbnail image is loading. |
data-error | Present if the thumbnail image failed to load. |
CSS Styling Example
Accessibility
Thumbnail is decorative by default (aria-hidden="true"). It is intended for visual preview UX and not primary accessible content.