Skip to content
mdxcn is now part of Shadcn Labs. details

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.
instead
Dated events are Timeline. A punch list with done boxes is Check.

install

[ 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 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

[ 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 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>
[ PROPS ]
PropTypeDefaultDescription
titlestring—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.
cornerstring"+"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.
classNamestring—Passed to the outer frame.