FlowDiagram
Steps in a row that stack on small screens.
Preview
- DefineIdeaRefine
- BuildCodeImplement
- ShipGoLive
Add to your site
npx docs-sitekit add flow-diagramIt writes these files, and keeps a file you changed:
src/presentation/components/site/flow-diagram.tsx
It requires nothing else from the registry.
Props
Built from the TypeScript types and the TSDoc comments of the component, so they cannot drift from the code.
| Key | Type | Default | Allowed values | Description |
|---|---|---|---|---|
steps | readonly FlowStep[] | required | - | The steps, in order. |
| Key | Type | Default | Allowed values | Description |
|---|---|---|---|---|
label | string | required | - | The phase, in mono capitals over the step. |
title | string | required | - | The name of the step. |
detail | string | - | - | A short line under the title. |
command | string | - | - | A command, in a mono pill under the step. |
Variants and states
With a command on each step
A command in a mono pill under the step.
- DefineIdea
/spec - BuildCode
/build - ShipGo
/ship
About
A process as steps in a row, each with a phase, a title, a detail and a command. The steps are in a row from the md width, with a short line between them, and stacked under it.
Accessibility
- The steps are an ordered list, so a screen reader says the position of each step.
- The line between two steps is
aria-hidden. - A command is plain text in a
<code>element, not a control.
Source
Edit this page
Last updated