Steps

Components•3 min read|
|

Use steps to guide readers through sequential procedures. Steps auto-number themselves and provide clear visual structure for tutorials and setup guides.

Basic steps

Style a step's parts with ::part(): number, title and content. See Custom CSS.

<wc-steps> <wc-step title="Create a project"> Run the init command to scaffold a new project. \```bash docslit init my-docs \``` </wc-step> <wc-step title="Start the server"> Launch the development server. \```bash docslit dev \``` </wc-step> <wc-step title="Open your browser"> Visit `http://localhost:3000` to see your site. </wc-step> </wc-steps>
Create a project

Run the init command to scaffold a new project.

docslit init my-docs
Start the server

Launch the development server.

docslit dev
Open your browser

Visit http://localhost:3000 to see your site.

Attributes

The level of the step titles: p, h2, h3 or h4. With h2, h3 or h4, each title is a real heading, so it appears in the page table of contents and gets an anchor. The step heading displayed next to the step marker. Inline Markdown works. An icon shown in the marker instead of the number. Override the generated step number. Use this when you need non-sequential numbering. The title level for this step. It overrides the value on wc-steps. Hide the hover anchor link on a plain-text (p) title.

Icons and headings

Replace the number with an icon, and make titles real headings so readers can jump to a step from the table of contents:

<wc-steps title-size="h3"> <wc-step title="Build the site" icon="hammer"> Run `docslit build`. </wc-step> <wc-step title="Publish it" icon="rocket"> Run `docslit publish`. </wc-step> </wc-steps>

Build the site

Run docslit build.

Publish it

Run docslit publish.

Rich content in steps

Each step supports full Markdown content — code blocks, callouts, lists, tables, and other components:

Configure your project

Open docslit.json and set your site name:

{ "name": "My Product Docs" } Choose a name that matches your product branding.
Add your first page

Create docs/getting-started.md with the following content:

--- title: Getting started --- # Getting started Welcome to the docs!
Verify it works

Check that your new page appears in the sidebar and renders correctly.

When to use steps

Use steps for any sequential procedure where order matters:

  • Installation and setup guides
  • Tutorial walkthroughs
  • Deployment checklists
  • Migration procedures

For non-sequential content, use accordions or standard headings instead.