TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/shuding/nextra/llms.txt
Use this file to discover all available pages before exploring further.
Steps component transforms a sequence of Markdown headings into a numbered, vertically-connected step list — the typical pattern used in installation guides, tutorials, and onboarding flows. You write normal Markdown headings inside the wrapper and Nextra takes care of the numbering and connecting line automatically, via a CSS counter keyed to a unique runtime ID.
Import
Props
<Steps> accepts all standard HTML div attributes and no component-specific props. The auto-numbering behaviour is driven entirely by CSS applied to heading elements found inside the wrapper.
| Prop | Type | Description |
|---|---|---|
children | ReactNode | Markdown headings (## through ######) and their associated content. |
className | string | Additional CSS class names for the steps container. |
Usage
Basic Steps
Wrap a set of Markdown headings with<Steps>. Any heading level from <h2> to <h6> works — choose the level that fits your page hierarchy without skipping levels.
Using Within a Larger Document
Steps are most useful for a section inside a longer page. Use a heading level one step below your section heading so the steps don’t appear in the main table of contents (or use the technique below to exclude them explicitly).Excluding Step Headings from the Table of Contents
By default, every Markdown heading inside<Steps> is collected by Nextra and listed in the page’s table of contents. To prevent this, replace the Markdown heading syntax with an inline HTML heading element wrapped in curly braces. The step numbering is preserved because the CSS counter targets the element tag, not the syntax.
Heading elements written as
{<h3>…</h3>} are treated as JSX expressions by MDX. This tells Nextra’s remark plugin to skip them during table-of-contents extraction while still rendering them in the page output.