Components

Built-in components work in every slide without an import. Props are checked when the deck builds, so a typo or a wrong value is a build problem with file and line. Every component also takes className and style. Generated from the component specs, the same source your AI reads through describe_component.

Component library version 1 (latest)Download version 1 (.zip)

<Cover>

Title slide: a big h1 and a muted subtitle.

<Cover align?="start|center|end">…</Cover>
PropTypeDefaultDescription
align"start" | "center" | "end""end"Vertical position of the content
childrenMDX contentMarkdown: a `#` heading and a short paragraph
classNamestringExtra classes to target from style.css
stylestyle objectInline styles
MDX
<Cover>

# Quarterly review

October 2026

</Cover>
Rendered HTML
<div class="d-cover" data-align="end"><h1 class="md">Quarterly review</h1><p class="md">October 2026</p></div>
Default CSS

Override any of it in your deck's style.css.

.d-cover {
  display: flex;
  flex-direction: column;
  gap: 2.4cqmin;
  flex: 1;
  justify-content: flex-end;
}

.d-cover[data-align="start"] {
  justify-content: flex-start;
}

.d-cover[data-align="center"] {
  justify-content: center;
}

.d-cover h1 {
  font-size: 3em;
}

.d-cover p {
  color: var(--muted);
  font-size: 1.1em;
}

<Center>

Centers its content both ways and fills the slide.

<Center>…</Center>
PropTypeDefaultDescription
childrenMDX contentAnything
classNamestringExtra classes to target from style.css
stylestyle objectInline styles
MDX
<Center>

## One idea

</Center>
Rendered HTML
<div class="d-center"><h2 class="md">One idea</h2></div>
Default CSS

Override any of it in your deck's style.css.

.d-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.4cqmin;
  flex: 1;
  text-align: center;
}

<Stack>

Vertical stack with a gap.

<Stack gap?="s|m|l">…</Stack>
PropTypeDefaultDescription
gap"s" | "m" | "l""m"Space between children
childrenMDX contentAnything
classNamestringExtra classes to target from style.css
stylestyle objectInline styles
MDX
<Stack gap="s">

<Kicker>Q3</Kicker>

## Revenue tripled

</Stack>
Rendered HTML
<div class="d-stack" data-gap="s"><p class="d-kicker">Q3</p><h2 class="md">Revenue tripled</h2></div>
Default CSS

Override any of it in your deck's style.css.

.d-stack {
  display: flex;
  flex-direction: column;
  gap: 2.4cqmin;
  min-width: 0;
}

.d-stack[data-gap="s"] {
  gap: 1.2cqmin;
}

.d-stack[data-gap="l"] {
  gap: 5cqmin;
}

<Columns>

Side by side columns, one per child. Stacks vertically in portrait.

<Columns ratio?="1:1" align?="start|center|end">…</Columns>
PropTypeDefaultDescription
ratiostring"1:1"Relative column widths, like "2:1" or "1:1:1"
align"start" | "center" | "end""start"Vertical alignment of the columns
childrenMDX contentOne child per column
classNamestringExtra classes to target from style.css
stylestyle objectInline styles
MDX
<Columns ratio="3:2" align="center">
<Stack>

## Revenue tripled

</Stack>

<Stat value="3.1×" label="year over year" />
</Columns>
Rendered HTML
<div class="d-columns" data-align="center" style="--d-columns:3fr 2fr"><div class="d-stack" data-gap="m"><h2 class="md">Revenue tripled</h2></div><figure class="d-stat"><strong>3.1×</strong><figcaption>year over year</figcaption></figure></div>
Default CSS

Override any of it in your deck's style.css.

.d-columns {
  display: grid;
  grid-template-columns: var(--d-columns);
  gap: 5cqmin;
  align-items: start;
  min-height: 0;
}

.d-columns[data-align="center"] {
  align-items: center;
}

.d-columns[data-align="end"] {
  align-items: end;
}

.d-columns > * {
  min-width: 0;
}

@container (orientation: portrait) {
  .d-columns {
    grid-template-columns: 1fr;
    gap: 4cqmin;
  }
}

<Grid>

Responsive grid of equal cells; as many columns fit as the minimum width allows.

<Grid min?="24cqmin">…</Grid>
PropTypeDefaultDescription
minstring"24cqmin"Minimum cell width, a CSS length
childrenMDX contentOne child per cell
classNamestringExtra classes to target from style.css
stylestyle objectInline styles
MDX
<Grid min="30cqmin">
<Stat value="12" label="teams" />
<Stat value="4.8" label="rating" />
<Stat value="99%" label="uptime" />
</Grid>
Rendered HTML
<div class="d-grid" style="--d-grid-min:30cqmin"><figure class="d-stat"><strong>12</strong><figcaption>teams</figcaption></figure><figure class="d-stat"><strong>4.8</strong><figcaption>rating</figcaption></figure><figure class="d-stat"><strong>99%</strong><figcaption>uptime</figcaption></figure></div>
Default CSS

Override any of it in your deck's style.css.

.d-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(var(--d-grid-min), 100%), 1fr));
  gap: 3cqmin;
}

<Statement>

One big sentence in the display font.

<Statement>…</Statement>
PropTypeDefaultDescription
childrenMDX contentA short sentence
classNamestringExtra classes to target from style.css
stylestyle objectInline styles
MDX
<Statement>Ship the smallest thing that teaches you something.</Statement>
Rendered HTML
<div class="d-statement">Ship the smallest thing that teaches you something.</div>
Default CSS

Override any of it in your deck's style.css.

.d-statement {
  font-family: var(--font-display);
  font-size: 2.4em;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
  max-width: 18em;
}

.d-statement p {
  max-width: none;
}

<Kicker>

Small uppercase label in the accent color, above a heading.

<Kicker>…</Kicker>
PropTypeDefaultDescription
childrenMDX contentA few words
classNamestringExtra classes to target from style.css
stylestyle objectInline styles
MDX
<Kicker>Q3 results</Kicker>
Rendered HTML
<p class="d-kicker">Q3 results</p>
Default CSS

Override any of it in your deck's style.css.

.d-kicker {
  color: var(--accent);
  font-size: 0.7em;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

<Muted>

Text in the theme's muted color.

<Muted>…</Muted>
PropTypeDefaultDescription
childrenMDX contentAnything
classNamestringExtra classes to target from style.css
stylestyle objectInline styles
MDX
<Muted>Source: internal survey, n=412</Muted>
Rendered HTML
<div class="d-muted">Source: internal survey, n=412</div>
Default CSS

Override any of it in your deck's style.css.

.d-muted {
  color: var(--muted);
}

<Stat>

Big number with a caption.

<Stat value label? />
PropTypeDefaultDescription
valuerequiredMDX contentThe number or short value
labelMDX contentCaption under the value
classNamestringExtra classes to target from style.css
stylestyle objectInline styles
MDX
<Stat value="3.1×" label="year over year" />
Rendered HTML
<figure class="d-stat"><strong>3.1×</strong><figcaption>year over year</figcaption></figure>
Default CSS

Override any of it in your deck's style.css.

.d-stat {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2em;
}

.d-stat strong {
  font-family: var(--font-display);
  font-size: 2.8em;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--accent);
}

.d-stat figcaption {
  color: var(--muted);
  font-size: 0.8em;
}

<Quote>

Pull quote with an optional attribution.

<Quote by?>…</Quote>
PropTypeDefaultDescription
byMDX contentWho said it
childrenMDX contentThe quote
classNamestringExtra classes to target from style.css
stylestyle objectInline styles
MDX
<Quote by="A customer">It replaced three tools for us.</Quote>
Rendered HTML
<figure class="d-quote"><blockquote>It replaced three tools for us.</blockquote><figcaption>A customer</figcaption></figure>
Default CSS

Override any of it in your deck's style.css.

.d-quote {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.d-quote blockquote {
  border: 0;
  padding: 0;
  font-family: var(--font-display);
  font-size: 1.7em;
  line-height: 1.2;
  max-width: 24em;
}

.d-quote blockquote::before {
  content: "\201C";
  display: block;
  height: 0.5em;
  color: var(--accent);
  font-size: 2em;
  line-height: 0.6;
}

.d-quote figcaption {
  color: var(--muted);
  font-size: 0.85em;
}

<Media>

Image or video (.mp4, .webm, .mov). Host files with add_media_from_url, or create_media_upload for local files.

<Media src alt?="" fit?="cover|contain" caption? bleed?=false />
PropTypeDefaultDescription
srcrequiredstringImage or video URL, or a /media/... path
altstring""Alt text for images
fit"cover" | "contain""cover"cover crops to fill, contain shows the whole file
captionMDX contentCaption over the bottom edge
bleedbooleanfalseFill the whole slide edge to edge; write the bare attribute `bleed`
classNamestringExtra classes to target from style.css
stylestyle objectInline styles
MDX
<Media src="/media/chart.png" alt="Revenue chart" fit="contain" caption="Revenue by month" />
Rendered HTML
<figure class="d-media" data-fit="contain"><img src="/media/chart.png" alt="Revenue chart" loading="lazy"/><figcaption>Revenue by month</figcaption></figure>
MDX
<Media src="/media/team.jpg" alt="The team" bleed />
Rendered HTML
<figure class="d-media d-bleed" data-fit="cover"><img src="/media/team.jpg" alt="The team" loading="lazy"/></figure>
Default CSS

Override any of it in your deck's style.css.

.d-media {
  position: relative;
  margin: 0;
  min-height: 0;
  flex: 1;
  overflow: hidden;
  border-radius: 1cqmin;
  background: var(--surface);
}

.d-media :is(img, video) {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.d-media[data-fit="contain"] {
  background: transparent;
}

.d-media[data-fit="contain"] :is(img, video) {
  object-fit: contain;
}

.d-media figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8cqmin 4cqmin 3cqmin;
  color: #fff;
  font-size: 0.75em;
  background: linear-gradient(transparent, rgb(0 0 0 / 0.6));
}

.d-bleed {
  position: absolute;
  inset: 0;
  border-radius: 0;
}

<Embed>

Iframe embed (YouTube, Figma, ...).

<Embed src title?="Embedded page" />
PropTypeDefaultDescription
srcrequiredstringURL of the page to embed
titlestring"Embedded page"Accessible title of the frame
classNamestringExtra classes to target from style.css
stylestyle objectInline styles
MDX
<Embed src="https://www.youtube.com/embed/aqz-KE-bpKQ" title="Demo video" />
Rendered HTML
<iframe class="d-embed" src="https://www.youtube.com/embed/aqz-KE-bpKQ" title="Demo video" allow="autoplay; fullscreen; clipboard-write"></iframe>
Default CSS

Override any of it in your deck's style.css.

.d-embed {
  flex: 1;
  width: 100%;
  min-height: 30cqmin;
  border: 0;
  border-radius: 1.2cqmin;
  background: var(--surface);
}

<Html>

Raw HTML, sanitized like the rest of the deck.

<Html html />
PropTypeDefaultDescription
htmlrequiredstringHTML markup
classNamestringExtra classes to target from style.css
stylestyle objectInline styles
MDX
<Html html="<details><summary>Show the math</summary>2 + 2 = 4</details>" />
Rendered HTML
<div class="d-html"><details><summary>Show the math</summary>2 + 2 = 4</details></div>
Default CSS

Override any of it in your deck's style.css.

.d-html {
  flex: 1;
  min-height: 0;
}

<Branch>

Button, or inline link with `inline`, that opens a branch of deck.json or a slide by name. The build fails if `to` matches nothing.

<Branch to inline?=false hotkey?="0|1|2|3|4|5|6|7|8|9|ArrowDown|a|b|d|e|g|h|i|j|k|l|m|n|o|p|q|r|s|t|u|v|w|x|y|z">…</Branch>
PropTypeDefaultDescription
torequiredstringA branch id or slide name from deck.json
childrenMDX contentButton label; defaults to `to`
inlinebooleanfalseRender as an underlined link inside running text instead of a button; write the bare attribute `inline`
hotkey"0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "ArrowDown" | "a" | "b" | "d" | "e" | "g" | "h" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z"Key that follows this link while its slide is showing: `ArrowDown` (also a swipe up on phones), a lowercase letter or a digit. Keys the player uses (arrows, Esc, Space, Page Up/Down, f, c) are not allowed. Show the key in the slide yourself
classNamestringExtra classes to target from style.css
stylestyle objectInline styles
MDX
<Branch to="pricing">Pricing risk</Branch>
Rendered HTML
<a class="d-branch" href="#pricing" data-branch="pricing"><span>Pricing risk</span></a>
MDX
<Branch to="pricing" inline>pricing risk</Branch>
Rendered HTML
<a class="d-branch d-branch-inline" href="#pricing" data-branch="pricing"><span>pricing risk</span></a>
MDX
<Branch to="pricing" hotkey="ArrowDown">Pricing risk ↓</Branch>
Rendered HTML
<a class="d-branch" href="#pricing" data-branch="pricing" aria-keyshortcuts="ArrowDown"><span>Pricing risk ↓</span></a>
Default CSS

Override any of it in your deck's style.css.

.d-branch {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.45em 1em;
  border: 2px solid var(--accent);
  border-radius: 999px;
  color: var(--fg);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.d-branch::after {
  content: "↓";
  color: var(--accent);
}

.d-branch:hover {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}

.d-branch-inline {
  display: inline;
  padding: 0;
  border: 0;
  border-radius: 0;
  font-weight: inherit;
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.18em;
  text-decoration-color: color-mix(in srgb, var(--fg) 40%, transparent);
}

.d-branch-inline::after {
  content: none;
}

.d-branch-inline:hover {
  background: none;
  text-decoration-color: var(--accent);
}

Versions

The built-in components, the Markdown styling and the slide layout ship together as one versioned component library. A deck pins it in deck.json with "library": 1. A released version never changes, so republishing a deck never restyles it or breaks its slides; improvements ship as a new version, and a deck moves to it only when its deck.json says so. New decks start on the latest version, and a deck.json without "library" uses version 1.

Every version is downloadable: the React components and their prop specs, the default CSS, these docs as JSON and the bundle decks.lol renders slides with. All versions are listed in /library/index.json.