VideoCard
A title in a video catalogue as one link.
View code
<VideoCard
href="/watch/tidewater/2-3"
title="Tidewater"
art={<img src="/stills/tidewater-203.jpg" alt="" />}
meta="S2:E3 · Lee Shore"
progress={0.42}
progressLabel="42% watched"
/>
<VideoCard
shape="poster"
href="/title/signal-fire"
title="Signal Fire"
art={<img src="/posters/signal-fire.jpg" alt="" />}
meta="2026 · Science fiction"
badge="New"
/>Installation
An ordinary dependency: install it, import the theme once, and import the component where it is used.
npm add @sdxc/ui remiximport "@sdxc/ui/theme.css";Usage
import { VideoCard } from "@sdxc/ui/video";Renders the card. The whole card is one link whose name is the title, so a row of them reads as a list of titles; the art scales a little under the pointer and stays still under reduced motion.
Examples
<VideoCard shape="poster" href="/title/ember" title="Ember Line" art={<Poster />} badge="New" />Props
Read from the component's own types, so every prop, every default and every allowed value is listed.
| Prop | Type | Required | Description |
|---|---|---|---|
href | string | Yes | The link's destination: the title's page, or straight into playback. |
title | string | Yes | The title's name, the card's accessible name and its first line. |
art | RemixNode | Yes | The artwork, drawn edge to edge in the frame: an <img>, an <svg> or a gradient. |
shape | "landscape" | "poster" | No | Default: "landscape". |
meta | RemixNode | No | A short second line, such as "S2 · E4 · 38 min" or "2026 · Drama". |
badge | RemixNode | No | A label on the art, such as "New episodes". |
badgePlacement | "top" | "bottom" | No | Which corner of the art the badge sits in. Default: "top" (the start of the top edge). |
progress | number | No | The share watched, from 0 to 1, drawn as a bar along the art's foot. |
progressLabel | string | No | What a screen reader hears for the bar, such as "38% watched"; required with progress. |
Also accepts everything in Omit<TagProps<"a">, "children" | "title" | "href" | "role">.
Types
| Name | Values | What it decides |
|---|---|---|
Shape | "landscape" | "poster" | landscape is a 16:9 still, poster a 2:3 key art. |
Also exported
Other components this module publishes.
clampProgress