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.
| Component | Kind | Use when |
|---|---|---|
<Code> | code | 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. |
<CodeMove> | code | Code that changes between versions: tokens glide from each state to the next, one per step. |
<CodeStep> | code | One state of a <CodeMove>, when a fence will not do (a different language). |
<Terminal> | code | 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. |
<Cmd> | code | 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. |
<Out> | code | A line of output in a <Terminal>, shown once the command before it is typed. |
<Image> | media | A photo or picture with the brand's treatment, cropped to its frame; a markdown image alone in its paragraph becomes one. |
<Video> | media | 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. |
<Lottie> | media | 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. |
<Icon> | icon | An icon from the brand's icon set, at the size of the text around it. |
<Button> | link | A call to action that opens a link; external links open in a new tab. |
<LinkCard> | link | A link worth a card: a title, a sentence and the readable URL. |
<Download> | link | A button that downloads one of the deck's exports, built with deck build --with-exports. |
<QR> | link | A link the room should open on their phones. |
<Live> | app | A small React widget running inline on the slide, such as a counter or a slider. |
<AppFrame> | app | A mini app (decks/<deck>/apps/<name>/, deck new app) or an external page in a sandboxed frame, with the brand and the steps. |
<CommandDemo> | app | A keyboard command opens data. Show the workspace, choice and executed result. |
<GroundedAnswer> | app | An answer cites specific source text, and readers can check the exact passage. |
<ReviewDiff> | app | A human reviews one exact change proposed by an assistant. |
<RunTrace> | app | An assistant makes two observable tool calls, then stops for a person to act. |
<Step> | motion | 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. |
<Morph> | motion | 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. |
<Notes> | notes | Speaker 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’spublic/folder when it begins with/. Files in the deck folder become imports;public/files are served as they are. A missing file is reported bydeck lintasmedia-missing. A Markdown image alone in its paragraph becomes an<Image>. See where a path points. - Static mode. Static mode,
deck shotand 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 lintwith a rule id:media-missing,media-gif,code-unknown-language,code-step-rangeandterminal-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.

| Prop | Type | Default | Description |
|---|---|---|---|
code | string | — | The source; a literal is highlighted at build time. |
children | string | — | The source as the tag's child, instead of code. |
lang | string | text | The language id, such as ts, tsx, bash or json. |
data | string | — | The block highlighted at build time; the build writes it. |
file | string | — | The file name in the title bar. |
label | string | false | the language name | The language label in the title bar; false hides it. |
lineNumbers | boolean | false | Show line numbers. |
start | number | 1 | The number of the first line. |
highlight | string | 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. |
at | number | 1 | The step of the first highlight entry. |
dim | boolean | true | Whether lines outside the focus fade back. |
diff | boolean | false | Read a leading + or - as an added or removed line, tinted with the surface diff colors. |
words | string[] | — | 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.

| Prop | Type | Default | Description |
|---|---|---|---|
data | string | — | The states highlighted at build time; the build writes it. |
steps | (string | { code, lang })[] | — | The states, for TSX slides; highlighted in the browser. |
children | ReactNode | — | The states: a fence or a <CodeStep> per state. |
lang | string | — | The language of every state that names none. |
file | string | — | The file name in the title bar. |
label | string | false | the language name | The language label in the title bar; false hides it. |
at | number | 1 | The 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>.

| Prop | Type | Default | Description |
|---|---|---|---|
code | string | — | The code of this state. |
children | ReactNode | — | The code of this state, as a fence or a string. |
lang | string | — | 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
aton a <Cmd>): the first is typed at the <Terminal>'sat, the next atat+ 1, and so on, and each command's <Out> lines appear once it is typed. With the defaultat={1}step 0 shows only the prompt and a waiting cursor;<Out>written before the first <Cmd> shows from step 0, andat={0}types the first command on arrival. - Avoid
- Long logs; show the two lines that matter.

| Prop | Type | Default | Description |
|---|---|---|---|
children | ReactNode | — | The session: <Cmd> and <Out> elements in order. |
title | string | Terminal | The title in the window bar. |
prompt | string | $ | The prompt before each command. |
at | number | 1 | The 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
atof its own. - Avoid
- Anywhere outside a <Terminal>.

| Prop | Type | Default | Description |
|---|---|---|---|
children | ReactNode | — | The command as typed after the prompt. |
text | string | — | 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>.

| Prop | Type | Default | Description |
|---|---|---|---|
children | ReactNode | — | The output line. |
text | string | — | The line as a string; the build sets it from the tag's text. |
tone | 'plain' | 'muted' | 'success' | 'warning' | 'error' | plain | The 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.

| Prop | Type | Default | Description |
|---|---|---|---|
srcrequired | string | — | The file, relative to the slide; a missing file is media-missing. |
altrequired | string | — | What the image shows; '' only for decoration. |
treatment | string | the slide's treatment, else the brand default | A 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' | cover | Crop to fill, or show all of it. |
focal | string | [number, number] | center | The point cropping keeps in view. |
ratio | number | — | 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. |
caption | ReactNode | — | 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.

| Prop | Type | Default | Description |
|---|---|---|---|
srcrequired | string | — | The video file (WebM). |
posterrequired | string | — | The still static mode, shots and exports show. |
posters | string[] | — | 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. |
altrequired | string | — | What the video shows. |
loop | boolean | false | Play again from the start when it ends. |
muted | boolean | true | Keep the sound off. |
autoPlay | boolean | true | Start playing when the slide appears. |
controls | boolean | false | Show the browser's controls. |
cues | number[] | — | Times in seconds that cut the video into parts played step by step; stepping back plays a part again from its start. |
at | number | 1 | The step of the second cue. |
fit | 'cover' | 'contain' | cover | Crop to fill, or show all of it. |
focal | string | [number, number] | center | The point cropping keeps in view. |
ratio | number | — | The frame's width over height. |
caption | ReactNode | — | 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.

| Prop | Type | Default | Description |
|---|---|---|---|
srcrequired | string | — | The Lottie JSON file. |
altrequired | string | — | What the animation shows. |
loop | boolean | false | Play again from the start when it ends. |
frame | number | 'first' | 'last' | last | The frame static mode shows. |
ratio | number | — | The frame's width over height. |
size | 'sm' | 'md' | 'lg' | 'full' | full | How wide the animation is. |
role | string | — | 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.

| Prop | Type | Default | Description |
|---|---|---|---|
name | string | — | The icon's name in the brand's set, or set:name. |
icon | ComponentType | — | An icon component, for TSX slides. |
size | string | body | The type step whose size it takes. |
role | string | the text color | The color role of the surface. |
label | string | — | A text alternative; without it the icon is decorative. |
Example
<Icon name="rocket" role="accent" />Links
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.

| Prop | Type | Default | Description |
|---|---|---|---|
hrefrequired | string | — | Where it goes: http(s), mailto or tel, a path or a #fragment; javascript: and other schemes are refused. |
variant | 'solid' | 'outline' | solid | Filled with the accent, or a ring. |
childrenrequired | ReactNode | — | 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.

| Prop | Type | Default | Description |
|---|---|---|---|
hrefrequired | string | — | Where the card goes; the same schemes as Button. |
titlerequired | string | — | What the link is. |
description | string | — | A sentence about it. |
icon | ReactNode | — | 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.

| Prop | Type | Default | Description |
|---|---|---|---|
filerequired | string | — | The file, relative to the built deck, such as talk.pdf. |
variant | 'solid' | 'outline' | solid | Filled with the accent, or a ring. |
childrenrequired | ReactNode | — | 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.

| Prop | Type | Default | Description |
|---|---|---|---|
valuerequired | string | — | What the code opens, usually a URL. |
size | number | 300 | Width and height on the canvas, in pixels. |
caption | boolean | true | Print 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).

| Prop | Type | Default | Description |
|---|---|---|---|
component | ComponentType | — | The component to host; or give children. |
props | object | — | The props passed to component. |
children | ReactNode | — | The widget as JSX, instead of component. |
poster | string | ({ step }) => ReactNode | — | What static mode and exports show. |
alt | string | | The poster image's alt text. |
mount | 'adjacent' | 'active' | adjacent | When the widget mounts. |
label | string | — | 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.

| Prop | Type | Default | Description |
|---|---|---|---|
app | string | — | The app folder under apps/; a name the deck does not have fails the build (app-missing in lint for a computed name). |
src | string | — | A URL or path to load instead of app. |
posterrequired | string | ({ step }) => ReactNode | — | What static mode, exports and offline runs show. |
alt | string | | What the app shows; the frame title. |
fallback | string | — | 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' | none | The frame's dressing. |
title | string | the app name or host | The text in the address or title bar. |
steps | number | 0 | The slide steps the app owns in static mode. |
mount | 'adjacent' | 'active' | adjacent | When the frame loads. |
keepAlive | boolean | false | Keep the app mounted after its slide leaves. |
bridge | boolean | false | Turn the bridge on for an external src. |
sandbox | string[] | — | Tokens to add to the iframe's sandbox. |
allow | string[] | — | Features to add to the iframe's allow. |
readyTimeout | number | 8000 | Milliseconds 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.

| Prop | Type | Default | Description |
|---|---|---|---|
workspacerequired | string | — | The workspace name shown in the chrome. |
contextrequired | string | — | What the workspace shows before opening the palette. |
commandsrequired | object[] | — | Supply commands with name, result and rows. The first command is the scripted example. |
reveal | boolean | true | Use 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.

| Prop | Type | Default | Description |
|---|---|---|---|
questionrequired | string | — | The question submitted to the assistant. |
answerrequired | string | — | The concise answer the evidence supports. |
sourceTitlerequired | string | — | The name of the document or brief. |
referencerequired | string | — | The location of the evidence inside the source. |
contextrequired | string | — | Relevant words before the supporting passage. |
evidencerequired | string | — | The exact words that the citation points to. |
reveal | boolean | true | Use 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.

| Prop | Type | Default | Description |
|---|---|---|---|
documentrequired | string | — | The file, document or record being reviewed. |
beforerequired | string | — | Unchanged words preceding the proposed edit. |
originalrequired | string | — | The exact words the assistant proposes removing. |
suggestionrequired | string | — | The exact words the assistant proposes inserting. |
afterrequired | string | — | Unchanged text following the proposed edit. |
rationalerequired | string | — | The reason for the suggested change. |
reveal | boolean | true | Use 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.

| Prop | Type | Default | Description |
|---|---|---|---|
instructionrequired | string | — | The task the person gave to the assistant. |
callsrequired | object[] | — | Exactly two calls, each with its tool, input and observation. |
checkpointrequired | string | — | The human judgment needed before an external operation. |
outcomerequired | string | — | What the run prepared before that checkpoint. |
reveal | boolean | true | Use 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.
| Prop | Type | Default | Description |
|---|---|---|---|
atrequired | number | — | The step that reveals the children, an integer of 1 or more; a bare <Step> is refused. |
effect | 'rise' | 'fade' | 'scale' | 'blur' | 'wipe' | rise | How 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. |
focus | boolean | false | Recede 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. |
children | ReactNode | — | 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>.

| Prop | Type | Default | Description |
|---|---|---|---|
idrequired | string | — | 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. |
children | ReactNode | — | 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.
| Prop | Type | Default | Description |
|---|---|---|---|
children | ReactNode | — | The notes, in markdown. |
Example
<Notes>
Say what the slide proves in a sentence.
</Notes>