You are viewing the v1.0.0 documentation.

Steps

Create step-by-step instructions and tutorials

The Steps component creates numbered step-by-step instructions, perfect for tutorials and guides.

Usage

Code
mdx
1<Steps>
2<Step title="First Step">
3Description of the first step.
4</Step>
5<!-- -->
6<Step title="Second Step">
7Description of the second step.
8</Step>
9</Steps>

Live Example

Install Dependencies

First, install the required npm packages:

Code
bash
1npm install svelte @sveltejs/kit

Create Configuration

Create a configuration file in your project root:

Code
javascript
1// svelte.config.js
2module.exports = {
3 reactStrictMode: true,
4}

Start Development Server

Run the development server:

Code
bash
1npm run dev

Your site is now running at http://localhost:3000!

Deploy to Production

When ready, build and deploy your application:

Code
bash
1npm run build
2npm start

Props

Steps

PropTypeDefaultDescription
childrenReactNoderequiredStep components

Step

PropTypeDefaultDescription
titlestringrequiredStep title/heading
childrenReactNoderequiredStep content

Features

  • Automatic Numbering - Steps are numbered automatically using CSS counters
  • Visual Timeline - A connecting line shows the progression through steps
  • Rich Content - Each step supports full MDX content including code blocks
Tip
Steps work great for installation guides, tutorials, and any sequential process that users need to follow.