---
title: "Steps"
subtitle: "<Steps> and <Step> are numbered procedures that can be listed in the table of contents."
---

Numbered procedural steps:

````mdx
<Steps>
  <Step title="Install">
    ```bash
    npm install -g bitidocs
    ```
  </Step>
  <Step title="Create a project">
    Run `biti init my-docs`.
  </Step>
  <Step title="Deploy" icon="lucide:rocket">
    Run `biti deploy`. The icon replaces the number.
  </Step>
</Steps>
````

<Steps>
  <Step title="Install">
    ```bash
    npm install -g bitidocs
    ```
  </Step>
  <Step title="Create a project">
    Run `biti init my-docs`.
  </Step>
  <Step title="Deploy" icon="lucide:rocket">
    Run `biti deploy`. The icon replaces the number.
  </Step>
</Steps>

## Steps from headings

When you write Markdown headings directly inside `<Steps>`, each heading starts a new step, and these steps appear in the table of contents on the right:

```mdx
<Steps>
  ### Set up your environment
  Install Node.js 22.13 or later.

  ### Initialize
  Run `biti init`.
</Steps>
```

<Steps>
  ### Set up your environment
  Install Node.js 22.13 or later.

  ### Initialize
  Run `biti init`.
</Steps>

## Steps props

<ParamField path="titleSize" type="p | h2 | h3">Size of step titles, default `p` (same size as body text).</ParamField>
<ParamField path="toc" type="boolean" default="false">Also list `<Step title>` steps in the table of contents. Heading-based steps always appear in the table of contents.</ParamField>
<ParamField path="tocDepth" type="number">Level of steps in the table of contents, 1–3.</ParamField>

## Step props

<ParamField path="title" type="string">Step title.</ParamField>
<ParamField path="id" type="string">Anchor id; generated from the title by default.</ParamField>
<ParamField path="icon" type="icon">Use an icon instead of the number.</ParamField>
<ParamField path="stepNumber" type="number">Explicit step number.</ParamField>
<ParamField path="titleSize" type="p | h2 | h3">Size of this step's title.</ParamField>
