Steps
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.
Run the init command to scaffold a new project.
Launch the development server.
Visit http://localhost:3000 to see your site.
Attributes
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.wc-steps.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:
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:
Open docslit.json and set your site name:
Create docs/getting-started.md with the following content:
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.