Skip to content

Slides

SlideNumber

Cold open: one number at full size and one line about it, on ink by default.

  • Experimental
  • No keyboard interaction
  • Screen reader not tested yet

Playground

Change the props. The controls come from the documented props.

Opening

54

components in the system.

tsx
<SlideNumber eyebrow="Opening" value="54" caption="components in the system." />

Usage

When to use

Use it as a cold open: one number that the talk explains.

When not to use

  • For several numbers: use SlideColumns or a table on a Slide.

How it works

The number at 200px, one line below, on ink by default.

Content guidelines

Only a real number, formatted as people say it. The caption says what it means, not where it comes from; the source goes in the footer.

Do and don’t

Do
  • Only real numbers, the one the talk is about.
Don’t
  • Don't show two numbers; that is a table.

Anatomy

The parts of the component and what each one does, as in the playground above.
  1. valueDisplay type, 200px at full size.
  2. captionEditorial line, 38px.

Examples

Type-checked, and the same code goes into the AI manifest. Import: import { SlideNumber } from "@/ds";

Cold open

Opening

0

invented numbers on this site.

2 / 7

Props

Checked against the component's TypeScript type on every build.
SlideNumber props
NameTypeDefaultDescription
value (required)string–The number as people say it, 200px.
caption (required)string–What the number means, one line.
eyebrowReactNode–Chapter · topic, as an uppercase label at the top.
surface"page" | "inverse" | "accent""inverse"Ink by default, like the openings of the decks.
pagenumber–Page number, bottom right.
totalnumber–Total pages; shown as “3 / 12”.

Tokens used

Derived from the utility classes in the component's source. Copy a class with one click.
Tokens used by SlideNumber
TokenTierValueUtility
display.colorcomponent#0A0A0B
display.trackingcomponent-0.035em
display.weightcomponent800
slide.stackcomponent2cqw
text.primarysemantic#0A0A0B
type.slide-editorial.sizesemantic2.375cqw
type.slide-number.sizesemantic12.5cqw

Accessibility

What is checked automatically on every build, and what a person has tested. Nothing is marked as tested unless it was.
Testing status by check
CheckHowStatus
axe-core rulesAutomated on every npm run check, at desktop and mobile widthRuns on every build
KeyboardAutomated Playwright test (scripts/keyboard.mjs)Not applicable
Screen readerManualNot tested yet

Semantics and focus

  • Each slide is a region with aria-roledescription “slide” and a label.
  • The label reads value and caption together.