SearchCtrlK

  • ↑↓navigate
  • ↵open
  • escclose

Can’t find it? Contact us

VideoCard

A title in a video catalogue as one link.

View code
tsx
<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.

Terminal
npm add @sdxc/ui remix
typescript
import "@sdxc/ui/theme.css";

Usage

typescript
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

tsx
<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.

PropTypeRequiredDescription
hrefstringYesThe link's destination: the title's page, or straight into playback.
titlestringYesThe title's name, the card's accessible name and its first line.
artRemixNodeYesThe artwork, drawn edge to edge in the frame: an <img>, an <svg> or a gradient.
shape"landscape" | "poster"NoDefault: "landscape".
metaRemixNodeNoA short second line, such as "S2 · E4 · 38 min" or "2026 · Drama".
badgeRemixNodeNoA label on the art, such as "New episodes".
badgePlacement"top" | "bottom"NoWhich corner of the art the badge sits in. Default: "top" (the start of the top edge).
progressnumberNoThe share watched, from 0 to 1, drawn as a bar along the art's foot.
progressLabelstringNoWhat 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

NameValuesWhat it decides
Shape"landscape" | "poster"landscape is a 16:9 still, poster a 2:3 key art.

Other components this module publishes.

  • clampProgress
@sdxc/ui

Can’t find it? Contact us