Skip to content

Components

Every slide component and its props.

Use this page to look up the props of a slide component that is not a chart or a diagram: code and terminals, images, video and Lottie, icons, links, live demos and mini apps, steps and morphs, and speaker notes. Charts are on charts and diagrams on diagrams.

ComponentKindUse when
<Code>codeA block of code in a slide; a fence (```ts title="a.ts" {2-4|7} lineNumbers diff /word/) is the usual way to write one.
<CodeMove>codeCode that changes between versions: tokens glide from each state to the next, one per step.
<CodeStep>codeOne state of a <CodeMove>, when a fence will not do (a different language).
<Terminal>codeA shell session typed live: each <Cmd> adds one step (there is no at on a <Cmd>): the first is typed at the <Terminal>'s at, the next at at + 1, and so on, and each command's <Out> lines appear once it is typed. With the default at={1} step 0 shows only the prompt and a waiting cursor; <Out> written before the first <Cmd> shows from step 0, and at={0} types the first command on arrival.
<Cmd>codeA command in a <Terminal>, kept exactly as written: URLs and *stars* stay text. Each one adds a step, in order; it takes no at of its own.
<Out>codeA line of output in a <Terminal>, shown once the command before it is typed.
<Image>mediaA photo or picture with the brand's treatment, cropped to its frame; a markdown image alone in its paragraph becomes one.
<Video>mediaMotion: plays on its slide, pauses when the deck leaves, and can be cut into parts by steps. Inside a <Step> it starts from the top when the step reveals it.
<Lottie>mediaA small vector animation, such as a check mark drawing itself. Inside a <Step> it plays when the step reveals it, so the room sees it draw.
<Icon>iconAn icon from the brand's icon set, at the size of the text around it.
<Button>linkA call to action that opens a link; external links open in a new tab.
<LinkCard>linkA link worth a card: a title, a sentence and the readable URL.
<Download>linkA button that downloads one of the deck's exports, built with deck build --with-exports.
<QR>linkA link the room should open on their phones.
<Live>appA small React widget running inline on the slide, such as a counter or a slider.
<AppFrame>appA mini app (decks/<deck>/apps/<name>/, deck new app) or an external page in a sandboxed frame, with the brand and the steps.
<CommandDemo>appA keyboard command opens data. Show the workspace, choice and executed result.
<GroundedAnswer>appAn answer cites specific source text, and readers can check the exact passage.
<ReviewDiff>appA human reviews one exact change proposed by an assistant.
<RunTrace>appAn assistant makes two observable tool calls, then stops for a person to act.
<Step>motionSegment an explanation: reveal the part the speaker is about to talk about at a later step; it keeps its space while hidden. Give each step of a run you walk through (points, cards) focus, so the one just revealed is at full strength and earlier ones recede to the muted color: that signals where to look.
<Morph>motionCarry one element across two consecutive slides: the photo that moves from one side to the other, the logo that shrinks into a corner, an icon or a short heading that changes place. Wrap it in a <Morph> with the same id on both slides and it flies to its new place and size instead of cross-fading with the rest.
<Notes>notesSpeaker notes: what the slide proves and what to say. Every slide has them.

How props are checked

Each component takes only the props its table lists. Any other name is refused with the closest prop, when one is close, and the list of props the component takes (“href is not a prop of <Download>. Did you mean file? Its props are: file, variant, children.”), and so is a missing required prop: at build time in an MDX slide, and when the slide renders in a TSX slide. None of these components shares props with another, so no row is marked “shared”.

The catalog states a few rules that hold for all of them:

  • Files. A path to an image, video, poster or Lottie file starts at the slide file when it begins with ./ or ../, at the deck folder when it is bare (assets/x.png), and at the deck’s public/ folder when it begins with /. Files in the deck folder become imports; public/ files are served as they are. A missing file is reported by deck lint as media-missing. A Markdown image alone in its paragraph becomes an <Image>. See where a path points.
  • Static mode. Static mode, deck shot and the exports never play video or load frames: they show posters, the <CodeMove> version of the current step without animation, and the whole terminal session up to the step.
  • Steps. Code highlights, <CodeMove> states, <Terminal> commands, <Video> cues and <AppFrame> steps are deck steps: each press moves one.
  • Build warnings. What the build warns about reaches deck lint with a rule id: media-missing, media-gif, code-unknown-language, code-step-range and terminal-tone.

deck components --json prints the same catalog. The <LinkCard> and <Step> below are the deck components, not the ones this site uses.

Code and terminals

How to show code and terminal sessions: code.

Code

Use when
A block of code in a slide; a fence (```ts title="a.ts" {2-4|7} lineNumbers diff /word/) is the usual way to write one.
Avoid
More than 11 lines, or 60 columns beside notes (90 without): cut it or split the slide.
A slide that uses <Code>: The same block works from TSX.
components / in-tsx
PropTypeDefaultDescription
codestring—The source; a literal is highlighted at build time.
childrenstring—The source as the tag's child, instead of code.
langstringtextThe language id, such as ts, tsx, bash or json.
datastring—The block highlighted at build time; the build writes it.
filestring—The file name in the title bar.
labelstring | falsethe language nameThe language label in the title bar; false hides it.
lineNumbersbooleanfalseShow line numbers.
startnumber1The number of the first line.
highlightstring | string[] | Record<number, string>—Lines to focus, by step: '2-4|7', a list, or { 1: '2-4' }. Each entry is a step; a step that names no line of the block is reported as code-step-range.
atnumber1The step of the first highlight entry.
dimbooleantrueWhether lines outside the focus fade back.
diffbooleanfalseRead a leading + or - as an added or removed line, tinted with the surface diff colors.
wordsstring[]—Words to mark wherever they occur as whole words (step does not mark steps).

Example

```ts title="server.ts" {2|3-4} lineNumbers
const app = createApp();
app.use(cors());
```

CodeMove

Use when
Code that changes between versions: tokens glide from each state to the next, one per step.
Avoid
Unrelated snippets; use separate slides. More than four states loses the room.
A slide that uses <CodeMove>: Windows are one new field.
lookbook / code-move
PropTypeDefaultDescription
datastring—The states highlighted at build time; the build writes it.
steps(string | { code, lang })[]—The states, for TSX slides; highlighted in the browser.
childrenReactNode—The states: a fence or a <CodeStep> per state.
langstring—The language of every state that names none.
filestring—The file name in the title bar.
labelstring | falsethe language nameThe language label in the title bar; false hides it.
atnumber1The step at which the second state appears.

Example

<CodeMove file="a.ts">

```ts
let a = 1;
```

```ts
const a = 1;
```

</CodeMove>

CodeStep

Use when
One state of a <CodeMove>, when a fence will not do (a different language).
Avoid
Anywhere outside a <CodeMove>.
A slide that uses <CodeStep>: The SDK is the same call, typed.
lookbook / code-codestep
PropTypeDefaultDescription
codestring—The code of this state.
childrenReactNode—The code of this state, as a fence or a string.
langstring—The state's language, when it differs.

Example

<CodeMove>
<CodeStep lang="js">{`a()`}</CodeStep>
<CodeStep lang="ts">{`a(1)`}</CodeStep>
</CodeMove>

Terminal

Use when
A shell session typed live: each <Cmd> adds one step (there is no at on a <Cmd>): the first is typed at the <Terminal>'s at, the next at at + 1, and so on, and each command's <Out> lines appear once it is typed. With the default at={1} step 0 shows only the prompt and a waiting cursor; <Out> written before the first <Cmd> shows from step 0, and at={0} types the first command on arrival.
Avoid
Long logs; show the two lines that matter.
A slide that uses <Terminal>: You can book a drop from a terminal.
lookbook / code-terminal
PropTypeDefaultDescription
childrenReactNode—The session: <Cmd> and <Out> elements in order.
titlestringTerminalThe title in the window bar.
promptstring$The prompt before each command.
atnumber1The step at which the first command is typed; each further <Cmd> is typed one step later. At 1 the terminal arrives showing only the prompt and cursor.

Example

<Terminal title="~/app">
  <Cmd>pnpm test</Cmd>
  <Out tone="success">64 passed</Out>
</Terminal>

Cmd

Use when
A command in a <Terminal>, kept exactly as written: URLs and *stars* stay text. Each one adds a step, in order; it takes no at of its own.
Avoid
Anywhere outside a <Terminal>.
A slide that uses <Cmd>: You can book a drop from a terminal.
lookbook / code-terminal
PropTypeDefaultDescription
childrenReactNode—The command as typed after the prompt.
textstring—The command as a string; the build sets it from the tag's text.

Example

<Cmd>curl -s https://api.example.com/v1/items?limit=100 | jq</Cmd>

Out

Use when
A line of output in a <Terminal>, shown once the command before it is typed.
Avoid
Anywhere outside a <Terminal>.
A slide that uses <Out>: You can book a drop from a terminal.
lookbook / code-terminal
PropTypeDefaultDescription
childrenReactNode—The output line.
textstring—The line as a string; the build sets it from the tag's text.
tone'plain' | 'muted' | 'success' | 'warning' | 'error'plainThe color of the line; error sets it on the removed-line tint. Another value is a terminal-tone warning.

Example

<Out tone="muted">built in 1.4 s</Out>

Media

Images, video and animation on a slide: media.

Image

Use when
A photo or picture with the brand's treatment, cropped to its frame; a markdown image alone in its paragraph becomes one.
Avoid
GIFs: the build converts a local GIF to video when ffmpeg is installed.
A slide that uses <Image>: Same hour, no van.
lookbook / cover
PropTypeDefaultDescription
srcrequiredstring—The file, relative to the slide; a missing file is media-missing.
altrequiredstring—What the image shows; '' only for decoration.
treatmentstringthe slide's treatment, else the brand defaultA treatment from the brand's imagery; plain, which every brand has, shows the image as it is (a screenshot, a map). An unknown name is a treatment-unknown warning.
fit'cover' | 'contain'coverCrop to fill, or show all of it.
focalstring | [number, number]centerThe point cropping keeps in view.
rationumber—The frame's width over height. The figure keeps that shape (a media frame fits the largest such box), so corners, a tint and a <Morph> hold it.
captionReactNode—A caption under the image.

Example

<Image
  src="../assets/street.jpg"
  alt="A street under maple trees"
  focal="top"
/>

Video

Use when
Motion: plays on its slide, pauses when the deck leaves, and can be cut into parts by steps. Inside a <Step> it starts from the top when the step reveals it.
Avoid
Sound the room must hear without a caption. Use WebM, not MP4.
A slide that uses <Video>: The launch film opens in light alone.
lookbook / split-video
PropTypeDefaultDescription
srcrequiredstring—The video file (WebM).
posterrequiredstring—The still static mode, shots and exports show.
postersstring[]—One still per part of a cued video, so static mode and deck shot --steps show each part; without them every step shows poster, which deck lint reports as video-cue-posters.
altrequiredstring—What the video shows.
loopbooleanfalsePlay again from the start when it ends.
mutedbooleantrueKeep the sound off.
autoPlaybooleantrueStart playing when the slide appears.
controlsbooleanfalseShow the browser's controls.
cuesnumber[]—Times in seconds that cut the video into parts played step by step; stepping back plays a part again from its start.
atnumber1The step of the second cue.
fit'cover' | 'contain'coverCrop to fill, or show all of it.
focalstring | [number, number]centerThe point cropping keeps in view.
rationumber—The frame's width over height.
captionReactNode—A caption under the video.

Example

<Video
  src="../assets/demo.webm"
  poster="../assets/demo.jpg"
  alt="The deploy, start to finish"
  cues={[0, 3, 6]}
/>

Lottie

Use when
A small vector animation, such as a check mark drawing itself. Inside a <Step> it plays when the step reveals it, so the room sees it draw.
Avoid
Long or busy animations; they pull the eye from the speaker.
A slide that uses <Lottie>: Every handover ends with a check.
lookbook / split-lottie
PropTypeDefaultDescription
srcrequiredstring—The Lottie JSON file.
altrequiredstring—What the animation shows.
loopbooleanfalsePlay again from the start when it ends.
framenumber | 'first' | 'last'lastThe frame static mode shows.
rationumber—The frame's width over height.
size'sm' | 'md' | 'lg' | 'full'fullHow wide the animation is.
rolestring—Draw every stroke and fill in this color role.

Example

<Lottie src="../assets/check.json" alt="A check mark" size="md" role="fg" />

Icons

Icon names: icons.

Icon

Use when
An icon from the brand's icon set, at the size of the text around it.
Avoid
Names only one set has; use names both brands share.
A slide that uses <Icon>: A hub is a shop front, not a warehouse.
lookbook / content-text
PropTypeDefaultDescription
namestring—The icon's name in the brand's set, or set:name.
iconComponentType—An icon component, for TSX slides.
sizestringbodyThe type step whose size it takes.
rolestringthe text colorThe color role of the surface.
labelstring—A text alternative; without it the icon is decorative.

Example

<Icon name="rocket" role="accent" />

Links, downloads and QR codes: links.

Button

Use when
A call to action that opens a link; external links open in a new tab.
Avoid
Links in running text; write a markdown link instead.
A slide that uses <Button>: Book a test drop from your phone, now.
lookbook / split-qr
PropTypeDefaultDescription
hrefrequiredstring—Where it goes: http(s), mailto or tel, a path or a #fragment; javascript: and other schemes are refused.
variant'solid' | 'outline'solidFilled with the accent, or a ring.
childrenrequiredReactNode—The label.

Example

<Button href="https://example.com/signup">Try it</Button>

LinkCard

Use when
A link worth a card: a title, a sentence and the readable URL.
Avoid
More than three on a slide.
A slide that uses <LinkCard>: Everything you need to ship a drop today.
lookbook / content-links
PropTypeDefaultDescription
hrefrequiredstring—Where the card goes; the same schemes as Button.
titlerequiredstring—What the link is.
descriptionstring—A sentence about it.
iconReactNode—An icon or logo at the start of the card.

Example

<LinkCard href="https://github.com/acme/api" title="The repository" />

Download

Use when
A button that downloads one of the deck's exports, built with deck build --with-exports.
Avoid
Files the build does not write; link to them with Button.
A slide that uses <Download>: Everything you need to ship a drop today.
lookbook / content-links
PropTypeDefaultDescription
filerequiredstring—The file, relative to the built deck, such as talk.pdf.
variant'solid' | 'outline'solidFilled with the accent, or a ring.
childrenrequiredReactNode—The label.

Example

<Download file="talk.pdf">Download the slides (PDF)</Download>

QR

Use when
A link the room should open on their phones.
Avoid
Long URLs; shorten them first.
A slide that uses <QR>: Book a test drop from your phone, now.
lookbook / split-qr
PropTypeDefaultDescription
valuerequiredstring—What the code opens, usually a URL.
sizenumber300Width and height on the canvas, in pixels.
captionbooleantruePrint the readable URL beneath the code.

Example

<QR value="https://example.com/slides" />

Apps

Live React components and mini apps: live components and mini apps.

Live

Use when
A small React widget running inline on the slide, such as a counter or a slider.
Avoid
Anything with its own styles or globals; make it a mini app (AppFrame).
A slide that uses <Live>: Price your own drops.
lookbook / demo-live
PropTypeDefaultDescription
componentComponentType—The component to host; or give children.
propsobject—The props passed to component.
childrenReactNode—The widget as JSX, instead of component.
posterstring | ({ step }) => ReactNode—What static mode and exports show.
altstringThe poster image's alt text.
mount'adjacent' | 'active'adjacentWhen the widget mounts.
labelstring—What the region is called to assistive technology.

Example

<Live
  component={Counter}
  poster="../assets/counter.png"
  alt="The counter at 3"
/>

AppFrame

Use when
A mini app (decks/<deck>/apps/<name>/, deck new app) or an external page in a sandboxed frame, with the brand and the steps.
Avoid
An external page without fallback=: the venue Wi-Fi decides whether it shows.
A slide that uses <AppFrame>: Watch Flock build a loop.
lookbook / demo-appframe
PropTypeDefaultDescription
appstring—The app folder under apps/; a name the deck does not have fails the build (app-missing in lint for a computed name).
srcstring—A URL or path to load instead of app.
posterrequiredstring | ({ step }) => ReactNode—What static mode, exports and offline runs show.
altstringWhat the app shows; the frame title.
fallbackstring—A recorded video played when the browser is offline, the host does not answer or the app fails; the presenter switches to it and back with the Recording control or the v key.
chrome'none' | 'browser' | 'window'noneThe frame's dressing.
titlestringthe app name or hostThe text in the address or title bar.
stepsnumber0The slide steps the app owns in static mode.
mount'adjacent' | 'active'adjacentWhen the frame loads.
keepAlivebooleanfalseKeep the app mounted after its slide leaves.
bridgebooleanfalseTurn the bridge on for an external src.
sandboxstring[]—Tokens to add to the iframe's sandbox.
allowstring[]—Features to add to the iframe's allow.
readyTimeoutnumber8000Milliseconds to wait for the app to be ready.
onResize(size) => void—Called with the size an app asks for.

Example

<AppFrame
  app="agent-demo"
  poster="../assets/agent.png"
  alt="An agent run"
  chrome="window"
/>

Product and AI demonstrations

These v0.7.0 components use data you write in the slide. Put one in the body of a demo slide. Each includes a default sequence of deck steps and renders its own still for export. Demo layout · Presentation patterns

CommandDemo

Put the command you want to run with the deck’s advance key first in commands. In the open palette you can also select another command and read its authored result. Command palette example

Use when
A keyboard command opens data. Show the workspace, choice and executed result.
Avoid
A live application that needs authenticated state or external data.
A slide that uses <CommandDemo>: One command opens the waiting drops.
lookbook / command-palette
PropTypeDefaultDescription
workspacerequiredstring—The workspace name shown in the chrome.
contextrequiredstring—What the workspace shows before opening the palette.
commandsrequiredobject[]—Supply commands with name, result and rows. The first command is the scripted example.
revealbooleantrueUse two deck advances for the palette and result.

Example

<CommandDemo
  workspace="Dispatch"
  context="Ready"
  commands={[{name:"List drops",result:"One waiting",rows:[{label:"WQ-214",detail:"Due by 09:35"}]}]}
/>

GroundedAnswer

Use context for the surrounding text and evidence for the exact supporting words. Activating the citation moves keyboard focus to that passage. Grounded answer example

Use when
An answer cites specific source text, and readers can check the exact passage.
Avoid
An answer without an authored source or an explicit citation.
A slide that uses <GroundedAnswer>: Check the answer against the dispatch rule.
lookbook / ai-grounded-answer
PropTypeDefaultDescription
questionrequiredstring—The question submitted to the assistant.
answerrequiredstring—The concise answer the evidence supports.
sourceTitlerequiredstring—The name of the document or brief.
referencerequiredstring—The location of the evidence inside the source.
contextrequiredstring—Relevant words before the supporting passage.
evidencerequiredstring—The exact words that the citation points to.
revealbooleantrueUse two deck advances for the answer and evidence.

Example

<GroundedAnswer
  sourceTitle="Dispatch rules"
  reference="Guide §3"
  context="Check each parcel."
  evidence="The bike limit is 25 kg."
  question="Will 28 kg fit?"
  answer="No. It exceeds the limit."
/>

ReviewDiff

Supply the original words and the replacement with their surrounding text. Choose Accept edit or Keep original in the live slide to read the whole draft with that choice applied. Review example

Use when
A human reviews one exact change proposed by an assistant.
Avoid
A code patch with many changed lines, which belongs in a diff fence.
A slide that uses <ReviewDiff>: A dispatcher approves the revised message.
lookbook / ai-review-diff
PropTypeDefaultDescription
documentrequiredstring—The file, document or record being reviewed.
beforerequiredstring—Unchanged words preceding the proposed edit.
originalrequiredstring—The exact words the assistant proposes removing.
suggestionrequiredstring—The exact words the assistant proposes inserting.
afterrequiredstring—Unchanged text following the proposed edit.
rationalerequiredstring—The reason for the suggested change.
revealbooleantrueUse two advances to show the proposed edit, then approval.

Example

<ReviewDiff
  document="Draft"
  before="Arrives "
  original="soon"
  suggestion="by 09:35"
  after="."
  rationale="Use the committed time."
/>

RunTrace

Give each call the input the audience should see and the observation it returns. Use checkpoint to say what a person must decide and outcome to show what is ready for review. Run trace example

Use when
An assistant makes two observable tool calls, then stops for a person to act.
Avoid
A technical trace with more than two calls, which belongs in a sequence diagram.
A slide that uses <RunTrace>: The agent stops before it sends a message.
lookbook / agent-run-trace
PropTypeDefaultDescription
instructionrequiredstring—The task the person gave to the assistant.
callsrequiredobject[]—Exactly two calls, each with its tool, input and observation.
checkpointrequiredstring—The human judgment needed before an external operation.
outcomerequiredstring—What the run prepared before that checkpoint.
revealbooleantrueUse three advances for the calls then the checkpoint.

Example

<RunTrace
  instruction="Draft an update."
  calls={[
    {tool:"lookup_drop",input:"WQ-214",observation:"Due by 09:35"},
    {tool:"read_eta",input:"Loop 17",observation:"ETA 09:21"},
  ]}
  checkpoint="Approval required"
  outcome="Draft ready."
/>

Motion

Steps and morphs: builds and transitions and morphs.

Step

Use when
Segment an explanation: reveal the part the speaker is about to talk about at a later step; it keeps its space while hidden. Give each step of a run you walk through (points, cards) focus, so the one just revealed is at full strength and earlier ones recede to the muted color: that signals where to look.
Avoid
Revealing every bullet one by one by habit, or for experts, who read faster than you reveal: reveal what the speaker builds on. Do not mix effects for variety; keep the default and pick another only when it carries meaning (wipe for a line read left to right, scale for a card that arrives). Charts and diagrams take their own at.
PropTypeDefaultDescription
atrequirednumber—The step that reveals the children, an integer of 1 or more; a bare <Step> is refused.
effect'rise' | 'fade' | 'scale' | 'blur' | 'wipe'riseHow the content comes in: rise (fade and rise), fade, scale (fade in from slightly smaller, growing from the middle of the text or picture, wherever it is aligned), blur (fade in from out of focus) or wipe (uncovered from the start edge across the content, list markers fading in with it). Each acts on the blocks directly inside the step: write the content on its own lines with blank lines inside the <Step>. Words inside a sentence fade, blur or wipe, but cannot rise or scale, which only fade there. Blur keeps the treatment of the kit's <Image>, <Video> and <Lottie>; a raw element whose own style sets a filter keeps that filter and is not blurred. Durations and easings are the brand's. Static mode and exports show the end state, reduced motion turns every effect into a fade, and a PPTX export into a fade on click.
focusbooleanfalseRecede the content to the brand's muted color once a later step of the slide is reached, so the latest step stands out. It changes color, never opacity, so receded text keeps its contrast. Static mode and exports show every revealed step at full strength.
childrenReactNode—The content to reveal.

Example

<Step at={1} focus>

- **Eastgate:** 14 residents

</Step>

<Step at={2} focus>

- **Riverside:** 2 residents

</Step>

<Step at={3} effect="wipe">

Seven times the shade for each tree.

</Step>

Morph

Use when
Carry one element across two consecutive slides: the photo that moves from one side to the other, the logo that shrinks into a corner, an icon or a short heading that changes place. Wrap it in a <Morph> with the same id on both slides and it flies to its new place and size instead of cross-fading with the rest.
Avoid
Morphing everything: one or two elements per move keep the eye on what carries over. Morphs play only between neighbouring slides; give each id once per slide. The box of the wrapped element flies, so a chart or number figure that fills its whole region flies as that region; morph something whose box is its own size. For a reveal within one slide use <Step>.
A slide that uses <Morph>: Dispatch shows every loop at once.
lookbook / morph-dispatch-overview
PropTypeDefaultDescription
idrequiredstring—The name shared with the matching <Morph> on the neighbouring slide; unique on the slide. It flies over the brand transition while the slides run their own. Static mode, exports and reduced motion show no morph.
childrenReactNode—What flies: one element, such as a picture, a logo, an icon or a heading. Only the first element flies; the wrapper itself has no box.

Example

<Morph id="logo">
  <Icon name="trees" role="accent" />
</Morph>

Speaker notes

Speaker notes: speaker notes.

Notes

Use when
Speaker notes: what the slide proves and what to say. Every slide has them.
Avoid
Text the audience must read; that belongs on the slide.
PropTypeDefaultDescription
childrenReactNode—The notes, in markdown.

Example

<Notes>
Say what the slide proves in a sentence.
</Notes>

Type to search…

↑↓ navigate↵ selectEsc close