TitleHero
A video title's hero.
Tidewater
16+20262 seasonsDrama · Mystery
When the last ferry of the year comes in a passenger short, the harbourmaster starts asking questions the island has spent forty winters not answering.
View code
<TitleHero
size="title"
art={<img src="/art/tidewater.jpg" alt="" />}
aria-labelledby="tidewater-title"
>
<TitleHero.Eyebrow>Original series</TitleHero.Eyebrow>
<TitleHero.Title id="tidewater-title" level={1}>Tidewater</TitleHero.Title>
<TitleHero.Facts>
<TitleHero.Rating>16+</TitleHero.Rating>
<span>2026</span>
<span>2 seasons</span>
<span>Drama · Mystery</span>
</TitleHero.Facts>
<TitleHero.Summary>
When the last ferry of the year comes in a passenger short, the harbourmaster
starts asking questions the island has spent forty winters not answering.
</TitleHero.Summary>
<TitleHero.Actions>
<LinkButton href="/watch/tidewater/1-1" color="brand">Play S1:E1</LinkButton>
<Button variant="surface">My List</Button>
</TitleHero.Actions>
</TitleHero>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 { TitleHero } from "@sdxc/ui/video";Renders the hero. It pulls itself up under a sticky top bar by --ui-title-hero-offset
(the bar's height), so the art starts at the window's edge while the text clears the bar;
under reduced motion the art holds still instead of drifting.
Composition
The parts the component publishes, each a static property of the host.
TitleHeroTitleHero.EyebrowThe small line over the title, such as "Original" or "New season".TitleHero.TitleThe title as the hero's heading, large and balanced; a page sets its own lettering throughmix, so each title can read in its own type.TitleHero.FactsThe facts under the title (rating, year, length, genres) as one wrapping row.TitleHero.RatingAn age rating in the facts row, outlined so it reads as a label rather than a fact.TitleHero.SummaryThe title's synopsis or tagline, shadowed so it reads over any art.TitleHero.ActionsThe hero's buttons, primary first, wrapping onto a second line on a narrow screen.
Props
Read from the component's own types, so every prop, every default and every allowed value is listed.
| Prop | Type | Required | Description |
|---|---|---|---|
art | RemixNode | Yes | The picture behind the hero, drawn edge to edge: an <img>, <picture> or <video>. |
size | "feature" | "title" | No | Default: "feature". |
children | RemixNode | Yes | The hero's parts: eyebrow, title, facts, summary and actions, in reading order. |
Also accepts everything in TagProps<"section">.
TitleHero.Eyebrow
TitleHero.Title
| Prop | Type | Required | Description |
|---|---|---|---|
level | 1 | 2 | Yes | 1 on a title's own page, 2 when the page has its own h1. |
Also accepts everything in TagProps<"h1">.
TitleHero.Facts
TitleHero.Rating
TitleHero.Summary
TitleHero.Actions
Types
| Name | Values | What it decides |
|---|---|---|
Size | "feature" | "title" | feature for a home's billboard, title for the head of a title's own page. |