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.
<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.
- valueDisplay type, 200px at full size.
- captionEditorial line, 38px.
Examples
Type-checked, and the same code goes into the AI manifest. Import: import { SlideNumber } from "@/ds";
Cold open
Props
Checked against the component's TypeScript type on every build.
| Name | Type | Default | Description |
|---|---|---|---|
| value (required) | string | – | The number as people say it, 200px. |
| caption (required) | string | – | What the number means, one line. |
| eyebrow | ReactNode | – | Chapter · topic, as an uppercase label at the top. |
| surface | "page" | "inverse" | "accent" | "inverse" | Ink by default, like the openings of the decks. |
| page | number | – | Page number, bottom right. |
| total | number | – | Total pages; shown as “3 / 12”. |
Tokens used
Derived from the utility classes in the component's source. Copy a class with one click.
| Token | Tier | Value | Utility |
|---|---|---|---|
| display.color | component | #0A0A0B | |
| display.tracking | component | -0.035em | |
| display.weight | component | 800 | |
| slide.stack | component | 2cqw | |
| text.primary | semantic | #0A0A0B | |
| type.slide-editorial.size | semantic | 2.375cqw | |
| type.slide-number.size | semantic | 12.5cqw |
Accessibility
What is checked automatically on every build, and what a person has tested. Nothing is marked as tested unless it was.
| Check | How | Status |
|---|---|---|
| axe-core rules | Automated on every npm run check, at desktop and mobile width | Runs on every build |
| Keyboard | Automated Playwright test (scripts/keyboard.mjs) | Not applicable |
| Screen reader | Manual | Not tested yet |
Semantics and focus
- Each slide is a region with aria-roledescription “slide” and a label.
- The label reads value and caption together.