---
title: "section"
description: "A divider that opens a part of the talk."
---

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

# section

Use the `section` layout for the divider that opens each part of your talk: a part number, a title of two to five words and an optional one-line summary. Give every part one and the room always knows where the talk has got to.

## Example

[Live slide: "Explain", slide 28 of the lookbook deck](https://sandrinodm.github.io/deckster/decks/lookbook/#/part-explain)

`decks/lookbook/slides/part-explain.mdx`:

```mdx
---
layout: section
title: Explain
number: 3
numeral: large
transition: cover
budget: 10s
---

What a drop, a loop and a hub are, and how they fit together.

<Notes>
`section` with `numeral: large` and `transition: cover`, the same on every divider so they read as one set; use one to open each part.
This part explains the parts of the service before we argue for it.
</Notes>
```

Notice the number: with `number: 3` and `numeral: large`, it is set as 03 in the surface's own tone, behind the title and running off the bottom edge. Every part opener in the [lookbook](https://sandrinodm.github.io/deckster/examples/lookbook/) writes the same fields, so the dividers read as a set.

Fill `<Media>` with one image and the divider changes shape: the picture fills the right five columns edge to edge and the text keeps to the left.

*Slide still: A divider on a light surface: the eyebrow 'Chapter three', the title 'The hub on the square' and a two-line summary on the left over a faint large 03, and an illustration of a hub shop front with a rider loading a cargo bike filling the right of the slide.* [Open the slide](https://sandrinodm.github.io/deckster/decks/lookbook/#/section-photo)

## When to use it

- **One per part, in order.** The catalog asks for every divider on the same surface and with the same options. Nothing in [`deck lint`](https://sandrinodm.github.io/deckster/review/lint/) checks that, so pick the fields once and copy them.
- **A short title and at most one sentence.** `title:` is required and takes 40 characters. The summary is plain text of up to 16 words, or 14 when `<Media>` is filled. When you leave it out, its two lines stay empty, so every divider sets its title at the same height.
- **The look is set by three fields.** `numeral: large` makes the number a landmark. Leave it out and the number sits small on the top line. `align: center` centres the number, title and summary, but has no effect beside a picture. The divider defaults to the `accent` surface and hides the page number, logo and progress bar (`chrome: false`).

Pick another layout when the slide is not a divider. The cover of the deck is [`title`](https://sandrinodm.github.io/deckster/reference/layouts/title/). A list of every part with the current one marked is [`agenda`](https://sandrinodm.github.io/deckster/reference/layouts/agenda/), and a single claim is [`statement`](https://sandrinodm.github.io/deckster/reference/layouts/statement/).

## Reference

Frontmatter: `layout: section`; surface: `accent`; title: required, 40 characters at most; PowerPoint: section slide.

A divider that opens a part of the talk: its number set large at the top, the part title on the bottom line and an optional one-sentence summary, whose two lines are kept free when it is left out so every divider sets its title at the same height. `numeral: large` makes the number a landmark: set in the surface tone, so large it runs off the bottom of the slide behind the title. `align: center` centres the number, title and summary on the slide. Fill `<Media>` with a photo for the part to fill the right five columns edge to edge; the text then stays on the left. Use one per part, in order, all on the same surface and with the same options, so the dividers read as a set. Defaults to the accent surface and hides the page chrome.

*Slide still (a lookbook slide in this layout, not the example below): A slide in the section layout: Open.* [Open the slide](https://sandrinodm.github.io/deckster/decks/lookbook/#/part-open)

**Slots**

| Slot | Required | Takes | Budget | What goes in it |
| --- | --- | --- | --- | --- |
| `body` | no | text | 16 words | One sentence on what this part covers. Set the part title in `title:` (two to five words). |
| `<Media>` | no | image | — | A photo for the part, as one `<img>` with alt text; it fills the right five columns of the slide edge to edge, in the brand image treatment, and the text keeps to the left (`align: center` does not apply). Leave it out for a type-only divider. |

**Frontmatter fields**

| Field | Values | How to use it |
| --- | --- | --- |
| `eyebrow` | text | Write a few words of at most 40 characters, for example `eyebrow: Budget committee`, or leave it out. |
| `number` | text | Number the part, for example `number: 2` (shown as 02) or `number: IV`, in up to 3 characters. |
| `numeral` | `small`, `large` | Write `numeral: large` to set the number as a large graphic behind the title, or leave it out for the number on the top line. |
| `align` | `left` (default), `center` | Write `align: center` to centre the number, title and summary on the slide, or leave it out to set them from the left. |
| `treatment` | text | Name one of the brand's image treatments, for example `treatment: plain` (every brand has it) to show a screenshot, map or chart in its own colors; `deck brand --json` lists them under imagery.treatments. |
| `chrome` | `true`, `false` (default) | Write `chrome: false` to hide the page number, logo and progress bar on this slide, or `chrome: true` to show them. |

**Variants**

- with media — body: 14 words

**Example**

```mdx
---
layout: section
title: The plan
number: "02"
eyebrow: Part two
numeral: large
---

Where we plant, in what order, and what it costs each year.

<Notes>
Say how long this part takes and what the committee will decide at its end.
</Notes>
```

## Common mistakes

- **A large numeral with no number.** `numeral: large` without `number:` fails with a `schema` error at `numeral`: "`numeral: large` sets the part number large, but the slide has no `number:`." Add `number: 2`, or remove `numeral`.
- **A list as the summary.** The body slot takes text only. Three bullets under the title get a `slot-content` error: "The body slot holds a list of 3 items; the section layout sets it as text." Write one sentence, and save the points for the part's first slide.
- **A number that is too long.** `number:` is a whole number from 0 to 99 (shown with two digits, so `3` reads 03) or text of up to three characters (`IV`, `Q3`). Anything longer is a `schema` error.
- **Dividers that do not match.** One divider with `numeral: small` or another surface among large-numeral accent ones breaks the set. Lint does not catch it.

## Related layouts

- [`title`](https://sandrinodm.github.io/deckster/reference/layouts/title/): the cover, used once, first, rather than a part opener.
- [`agenda`](https://sandrinodm.github.io/deckster/reference/layouts/agenda/): shows all the parts at once, with `current:` marking the one that starts.
- [`statement`](https://sandrinodm.github.io/deckster/reference/layouts/statement/): one sentence set large, a claim and not a heading.

The lookbook gives every part opener `transition: cover`; see [transitions and morphs](https://sandrinodm.github.io/deckster/write-slides/transitions-and-morphs/).

Source: https://sandrinodm.github.io/deckster/reference/layouts/section/index.mdx
