divider — Lattice component

divider

AnchorDividerProse

Section boundary slide. Dark canvas with a single heading.

Open in Playground
Variant

Marks the start of a major section. Use sparingly — every divider is a context switch for the audience. A 30-slide deck typically has 3-5 dividers; more becomes navigation noise.

section-breakagenda-settingwalkthrough

When to use

  • Major section starts. Marks the boundary between two themed sections of the deck. The dark canvas is a strong context-switch signal — use it when the audience needs to re-orient.
  • Sparingly. A 30-slide deck typically has 3-5 dividers. More becomes navigation noise; the signal weakens if every third slide is a divider.
  • With an eyebrow. An inline-code paragraph above the heading stamps a section number or category label. Useful for serialized decks where the audience needs to remember which section they're in.
  • Light variant for sub-section orientation. The light variant keeps the bright body-slide canvas and centers the heading at h2 weight — a lighter context switch for narrowing focus within a section, between a dark divider and the content slides. (Absorbed the standalone subtopic component on 2026-06-07.)

When not to use

  • More than five per deck. Each divider is a hard context switch. Too many dilutes the signal and slows the audience. Group related content under fewer sections instead.
  • Section title that doesn't earn a section. If the next 3-4 slides aren't a coherent unit, the light variant (bright canvas, centered) is the right tool. Reserve the dark divider for genuine section starts.
  • Header or footer overrides. Don't reinstate _header: or _footer: on a divider. The dark canvas is meant to be uninterrupted; chrome belongs on body slides.

Common mistakes

  • Eyebrow written as plain text instead of inline code, e.g. plain Section 01 instead of a backtick-wrapped one. Divider's eyebrow uses the shared before-heading rule p:has(> code:only-child):has(+ h2) (base.modifiers.css) — wrap it in backticks; without the code span it's just a plain paragraph with no eyebrow treatment at all.
  • Eyebrow paragraph placed AFTER the heading, copying the title/closing pattern. Divider's eyebrow is the mirror image of title/closing's — it uses the BEFORE-heading rule (p:has(> code:only-child):has(+ h2)), not the after-heading one those two use. Keep it directly before ## Section name; placed after, it still renders (via the separate after-heading rule) but as an italic secondary-color treatment, not the intended mono kicker.

Authoring

<!-- _class: divider -->
<!-- _paginate: false -->
<!-- _header: '' -->
<!-- _footer: '' -->

`Section 01`

## Section name

Slots

SlotSelectorRequiredDescription
headingh2yesSection name.
eyebrowp > codenoOptional section number or category label above the heading.

Anatomy

┌─────────────────────────────────────────┐
│            [dark background]            │
│                                         │
│               SECTION 02                │
│                                         │
│            Section headline             │
│                                         │
│                                         │
│                                         │
└─────────────────────────────────────────┘

Variant decision rule

  • default (no modifier)A standard mid-deck section start — dark canvas, one heading, no extra chrome.
  • numberedSection numbering matters to the audience — a long, multi-part deck where a running section count in the corner helps orientation.
  • lightA narrower re-focus within a section rather than a full section start — sits between a dark divider and a run of content slides. Reserve the dark default for genuine section starts.
  • qrThe divider itself should carry a scannable link — a resource specific to the section it's opening.

Variants

numberednumbered

Stamps the running section number.

<!-- _class: divider silent numbered -->

`divider numbered`

## The corner stamp counts this divider for you.

lightlight

Bright canvas, sentence-length waypoint.

<!-- _class: divider light -->

`divider light`

## The light divider trades the dark canvas for a bright, full-sentence waypoint.

qrqr

The payload bullet becomes a code.

<!-- _class: divider qr -->

`divider qr`

## The payload bullet below becomes a scannable code.

- https://slidewright.dev/components/divider
- Scan for the divider's docs `caption`

Related

  • titleopens the deck — same dark-bookend chrome
  • closingcloses the deck — completes the bookend trio