Velocity X Components

Cards & Expandables

Video Thumbnail Card

The tile a video library, course list or media grid is built from — poster frame, duration badge, play affordance and an optional watched-progress bar. Links out to your own player route rather than embedding one, so a grid of these stays light.

Subscription Included with the Velocity Components subscription.
bash
$ velocityx add video-thumbnail-card

Built for react. Needs react already installed as a peer dependency. An Astro-only project needs @astrojs/react wired up first — this won't run on its own in plain Astro.

Full docs for Video Thumbnail Card →

Needs a licence key — subscribe here, then velocityx loginonce.

react v1.0.1 react

Props

NameTypeRequiredDefaultDescription
titlestringYes
posterSrcstringYes
durationstringYesalready-formatted, e.g. "12:04"
categorystringYessmall eyebrow, e.g. "Tutorial"
metastringYese.g. "48K views · 3 days ago"
progressnumberYes0–100, shows a watched-progress bar
hrefstringYes
onClick() => voidYes
classNamestringNo''

File this creates

The CLI writes this path into your project, relative to its root — nothing else moves.

text
components/velocity/video-thumbnail-card/VideoThumbnailCard.jsx

Using the Video Thumbnail Card component

Install it with velocityx add video-thumbnail-card. The CLI writes the source straight into your project — no runtime dependency, no registry lock-in, and it themes itself from the same primary-*/accent-* scale as the rest of the library.

More from Cards & Expandables.