Slides
SlideProcess
A process or roadmap on one line: steps as dots, decision points as squares, text below each step.
- Experimental
- No keyboard interaction
- Screen reader not tested yet
Playground
Change the props. The controls come from the documented props.
<SlideProcess
eyebrow="Pipeline · Process"
title="From brief to screen."
steps={[
{ name: "Describe", text: "The screen in plain words." },
{ name: "Compose", text: "From components only." },
{ name: "Check", text: "Contrast, types, axe.", gate: "Gate" },
{ name: "Fix", text: "At the cause." },
{ name: "Curate", text: "A person decides.", focus: true },
]}
/>Usage
When to use
Use it for an approach, a roadmap or a pipeline: three to six steps in order, with the points where others decide.
When not to use
- For parallel points without order: use SlideColumns.
How it works
Steps sit on one line as dots, decision points as squares after their step, as in the decks (phases are dots, gates are squares). The focus step turns terracotta. Text sits under each step.
Content guidelines
Step names are one word, a verb or a noun. The headline counts them: “Six phases, two gates.”
Do and don’t
Do
- Name decision points as gates; they are where others decide.
Don’t
- Don't use more than six steps; group them into phases.
Anatomy
The parts of the component and what each one does, as in the playground above.
- titleOne-line headline, 64px.
- indicatorDot per step, square per decision point; terracotta for the focus.
- bodyStep name 30px, text 24px.
- labelGate label under its step.
Examples
Type-checked, and the same code goes into the AI manifest. Import: import { SlideProcess } from "@/ds";
Five steps, one gate
Props
Checked against the component's TypeScript type on every build.
| Name | Type | Default | Description |
|---|---|---|---|
| title (required) | ReactNode | – | One sentence, e.g. “Six phases, two gates.” |
| steps (required) | SlideStep[] | – | name, text, gate and focus per step; three to six. |
| label | string | – | Plain title for screen readers when title has markup. |
| eyebrow | ReactNode | – | Chapter · topic, as an uppercase label at the top. |
| source | ReactNode | – | Source line, bottom left, at the caption floor. |
| surface | "page" | "inverse" | "accent" | "page" | Surface mode of the whole slide. |
| 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 |
|---|---|---|---|
| slide.gap | component | 1cqw | |
| accent.default | semantic | #C6492E | |
| spacing.2 | semantic | 8px | |
| surface.page | semantic | #FAFAF7 | |
| text.primary | semantic | #0A0A0B | |
| text.secondary | semantic | #555555 | |
| type.slide-body.size | semantic | 1.5cqw | |
| type.slide-lead.size | semantic | 1.875cqw | |
| type.slide-title.size | semantic | 4cqw | |
| weight.bold | semantic | 700 |
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.
- Steps are an ordered list; dots and squares are decorative, gates are named in text.
Contrast
| Pairing | Ratio (x:1) | Minimum | Status |
|---|---|---|---|
| text.primary on surface.page | 18.92 | 4.5 | Pass |
| text.secondary on surface.page | 7.13 | 4.5 | Pass |
| accent.default on surface.page | 4.57 | 4.5 | Pass |