CardVideo
Video thumbnail card with a play button overlay. Links to an external video URL and supports optional title and caption text below the thumbnail.
Best for
Import
import { CardVideo } from "@enadhq/enad-react-sdk/client/storefront"When to use it
Use CardVideo when a page needs a clickable video thumbnail that links to an external video (YouTube, Vimeo, or a self-hosted URL). It signals video content through a play button overlay on the thumbnail image.
The component does not embed or play video inline. It links out to the video URL in a new tab. For inline video players, build a custom solution.
Composition notes
CardVideo is a simple prop-driven card:
thumbnailis the preview image shown in the card.videoUrlis the destination link. When provided, the entire card becomes clickable.aspectRatiocontrols the thumbnail crop:16:9(default),4:3, or1:1.titleandcaptionrender below the thumbnail as text, same asCardImageWithCaption.
The play button overlay renders automatically on top of the thumbnail with a dark tint that darkens on hover.
Behavior and theming guidance
The thumbnail renders with object-cover inside the chosen aspect ratio. The play button is centered over the image with a semi-transparent dark overlay.
On hover, the overlay darkens further to give interactive feedback. If videoUrl is provided, the card wraps in an anchor that opens in a new tab (target="_blank").
Give the thumbnail a real alt value when it carries context beyond the visible title, and use the text below the card to make it clear where the click leads. Use 16:9 for standard video thumbnails, 4:3 for older-format content, and 1:1 for social-style video teasers.
Examples
Live examples you can edit directly in the sandbox.
Video thumbnail with caption
A thumbnail card that links to an external video. The play button overlay signals that clicking opens a video rather than a product page.
Component Sets
Preview the first example across the available component-set presets to compare tone, spacing, and structural defaults.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| thumbnail | string | — | No description yet. |
| videoUrl | string | — | No description yet. |
| title | string | — | No description yet. |
| caption | string | — | No description yet. |
| aspectRatio | string | 16:9 | No description yet. |
| className | string | — | No description yet. |