gittydocsgittydocs

Steps

Present numbered instructions with the import-free Steps and Step components.

Wrap each instruction in Step, then place the steps inside Steps. Numbering is automatic and follows their order. A step's title is optional, and its body can contain ordinary Markdown, lists, links, or code fences.

Live demo

  1. Create your docs

    Scaffold a docs folder:

    gittydocs new docs
  2. Preview locally

    Start the preview from your project root:

    gittydocs dev ./docs
  3. Edit a page and save it. Local changes refresh automatically.

Syntax

This reproduces the live demo. No imports are required:

getting-started.mdx
<Steps>
  <Step title="Create your docs">

Scaffold a docs folder:

```bash
gittydocs new docs
```

  </Step>
  <Step title="Preview locally">

Start the preview from your project root:

```bash
gittydocs dev ./docs
```

  </Step>
  <Step>

Edit a page and save it. Local changes refresh automatically.

  </Step>
</Steps>

The last step intentionally has no title. It still gets a number, but does not render an empty title row.

Props

Steps props
childrenStep elements
Ordered instructions; no additional props are required.
Step props
titlestring
Optional; omit for a body-only instruction.
childrenMDX content
The instruction body.

For a simple list with no rich content, a normal Markdown numbered list is still a good choice.

Markdown output

Markdown exports turn live steps into numbered headings and preserve their bodies. The titled steps become headings such as ### 1. Create your docs; the untitled one becomes ### 3. Step. Fenced source examples remain code and are not expanded into a second set of instructions.