# TitleHero

> A video title's hero: its art edge to edge behind the page's top bar, faded into the page at its foot and toward the text, with an eyebrow, the title, a row of facts, a summary and the actions.

```ts
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.

## Examples

```tsx
<TitleHero art={<img src="/art/tidewater.jpg" alt="" />} aria-labelledby="hero-title">
	<TitleHero.Eyebrow>Original</TitleHero.Eyebrow>
	<TitleHero.Title id="hero-title" level={1}>Tidewater</TitleHero.Title>
	<TitleHero.Facts><span>2026</span><span>2 seasons</span></TitleHero.Facts>
	<TitleHero.Summary>A harbour town keeps one secret a season.</TitleHero.Summary>
	<TitleHero.Actions><LinkButton href="/watch/tidewater">Play</LinkButton></TitleHero.Actions>
</TitleHero>
```

## Props

| Prop | Type | Description |
| --- | --- | --- |
| `art` | `RemixNode` | The picture behind the hero, drawn edge to edge: an `<img>`, `<picture>` or `<video>`. |
| `size?` | `"feature" \| "title"` | Default: `"feature"`. |
| `children` | `RemixNode` | The hero's parts: eyebrow, title, facts, summary and actions, in reading order. |

Also accepts everything in `TagProps<"section">`.


### TitleHero.Eyebrow

The small line over the title, such as "Original" or "New season".

Takes no props of its own.

### TitleHero.Title

The title as the hero's heading, large and balanced; a page sets its own lettering through `mix`, so each title can read in its own type.

| Prop | Type | Description |
| --- | --- | --- |
| `level` | `1 \| 2` | `1` on a title's own page, `2` when the page has its own `h1`. |

Also accepts everything in `TagProps<"h1">`.


### TitleHero.Facts

The facts under the title (rating, year, length, genres) as one wrapping row.

Takes no props of its own.

### TitleHero.Rating

An age rating in the facts row, outlined so it reads as a label rather than a fact.

Takes no props of its own.

### TitleHero.Summary

The title's synopsis or tagline, shadowed so it reads over any art.

Takes no props of its own.

### TitleHero.Actions

The hero's buttons, primary first, wrapping onto a second line on a narrow screen.

Takes no props of its own.

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