---
title: "Links, downloads and QR codes"
description: "Add buttons, link cards, a download of the deck and a QR code to a slide."
---

> Documentation Index
> Fetch the complete documentation index at: https://sandrinodm.github.io/deckster/llms.txt
> Use this file to discover all available pages before exploring further.

# Links, downloads and QR codes

End a talk with somewhere to go: a button, a card for a link worth a sentence, a download of the deck's own PDF, or a QR code the room can scan. All four are kit components, so they need no import.

[Live slide: "Everything else is one click away", slide 43 of the showcase deck](https://sandrinodm.github.io/deckster/decks/showcase/#/links)

`decks/showcase/slides/links.mdx`:

```mdx
---
layout: split
title: Everything else is one click away
eyebrow: Take it with you
ratio: 1:1
budget: 30s
---

The docs for people, the docs for agents, and this deck as a file.

<Button href="https://deckster.example/start">Start a deck</Button> <Download file="showcase.pdf" variant="outline">Get these slides (PDF)</Download>

<Media>
  <LinkCard href="https://deckster.example/docs" title="The guide" description="Layouts, brands, lint rules and the CLI, with examples." />
  <LinkCard href="https://deckster.example/agents" title="For agents" description="The catalogs, the MCP server and the authoring skill." />
</Media>

<Notes>
Two links and two buttons. The guide for people, the agent docs for your coding agent, a start button, and this deck as a PDF, which the build writes next to the site.

These are real links on the slide: click them in the browser and the deck stays where it is.

If asked: the addresses are placeholders until the project has a public home.

Transition: one last piece of evidence.
</Notes>
```

## Add a call to action

`<Button href>` opens a link. `variant="outline"` draws it as a ring instead of filled with the accent.

```mdx
<Button href="https://example.com/start">Start a deck</Button>
```

`href` takes `http(s)`, `mailto` and `tel` URLs, a path or a `#` fragment; `javascript:` and other schemes are refused. A link that leaves the deck opens in a new tab, so the deck stays open. A click on a button does not move the deck. For a link inside a sentence, write a Markdown link instead.

## Show a link worth a card

`<LinkCard>` shows a title, an optional sentence and the readable URL, with an optional `icon` at the start. Three cards on a slide is the most that reads.

```mdx
<LinkCard href="https://example.com/docs" title="The guide" description="Layouts, brands, lint rules and the CLI, with examples." />
```

## Offer the deck's PDF or PowerPoint

`<Download file>` is a button that downloads one of the deck's exports. The file is a relative path beside the built deck: `<deck>.pdf` or `<deck>.pptx`.

```mdx
<Download file="launch-review.pdf" variant="outline">Get these slides (PDF)</Download>
```

Only `deck build --with-exports` writes those files:

```console
$ deck build launch-review --with-exports
...
$ ls decks/launch-review/dist
assets
fonts
index.html
launch-review.pdf
launch-review.pptx
```

The build prints Vite's output, cut here. Without `--with-exports` there is no file, and `deck dev` and `deck preview` answer the request with the deck's own page, so the button saves an HTML page under the PDF's name. Build with `--with-exports`, then try the button in `deck preview launch-review`. Hosting the folder is on [build and host](https://sandrinodm.github.io/deckster/export-and-publish/build-and-host/).

A `file` with a scheme, a host or a leading `/` is refused. To link to any other file, use `<Button>`.

## Give the room a code to scan

`<QR value>` draws a QR code, with the readable URL under it unless `caption={false}`. `size` is its width and height on the 1920x1080 canvas, 300 pixels by default. Shorten long URLs first.

```mdx
<Media>
<QR value="https://wrenhaul.example/start" size={480} />
</Media>
```

*Slide still: A split slide titled 'Book a test drop from your phone, now', with three bullets and an 'Open the console' button on the left, and a large QR code over the address wrenhaul.example/start on the right.* [Open the slide](https://sandrinodm.github.io/deckster/decks/lookbook/#/split-qr)

The last slide of a talk has its own field for this: the `closing` layout's `qr:` takes an `https://` address of up to 56 characters and draws it as a code with the address under it, beside up to three `contacts:`. See the [`closing` layout](https://sandrinodm.github.io/deckster/reference/layouts/closing/).

## Do links survive export?

- **PDF:** external links and links to other slides of the deck stay clickable. See [PDF](https://sandrinodm.github.io/deckster/export-and-publish/pdf/).
- **PowerPoint:** `http(s)`, `mailto` and `tel` links stay links, and a link to another slide becomes a jump to that slide. Other links, such as the relative path of a `<Download>`, are dropped.

Every prop is on [components](https://sandrinodm.github.io/deckster/reference/components/#props-Button).

Source: https://sandrinodm.github.io/deckster/write-slides/links/index.mdx
