steps
Steps
A numbered procedure. Write an ordered list, bold the current step and italicize the next one. For dated events use Timeline, and for a to-do list use Check.
- use it
- Good for a procedure (install, migrate, release) with one step marked now.
install
Copy the source
Run the shadcn CLI. Files land under registry/default.
Register it
Export the component from mdx-components.tsx.
Write
Use it between paragraphs. No import line.
<Steps title="INSTALL">
1. Copy the source
Run the shadcn CLI. Files land under registry/default.
2. **Register it**
Export the component from mdx-components.tsx.
3. *Write*
Use it between paragraphs. No import line.
</Steps>install
command
runbook
Flip the flag
cache.v2 to off in the dashboard.Watch p95
Two minutes. It should drop under 300ms.Write it down
Open the postmortem before you leave.
<Steps title="ROLLBACK">
1. Flip the flag — cache.v2 to off in the dashboard.
2. Watch p95 — Two minutes. It should drop under 300ms.
3. Write it down — Open the postmortem before you leave.
</Steps>| Prop | Type | Default | Description |
|---|---|---|---|
| title | string | — | Caption drawn on the top edge of the frame. |
| children | <Step /> | — | Markdown ordered list. Bold is now, italic is next. Nested paragraphs are the body. |
| corner | string | "+" | Character at each corner of the frame. |
| frame | "box" | "corners" | "rule" | "none" | "box" | box draws the dashed border. corners keeps only the corner marks. rule draws dashed lines above and below. none drops the border and padding, and puts the title above the content. |
| className | string | — | Passed to the outer frame. |