Skip to content

Steps

npm versionnpm monthly downloadsnpm sizenpm license

Step container plugin for creating step-by-step guided content in Markdown.

Installation

sh
pnpm add vitepress-plugin-steps
sh
npm install vitepress-plugin-steps
sh
bun add vitepress-plugin-steps
sh
deno add vitepress-plugin-steps
sh
yarn add vitepress-plugin-steps

Usage

.vitepress/config.ts
ts
import { defineConfig } from 'vitepress-tuck'
import steps from 'vitepress-plugin-steps'

export default defineConfig({
  plugins: [steps()],
})

Learn more about vitepress-tuck

Native Mode

.vitepress/config.ts
ts
import { defineConfig } from 'vitepress'
import { stepsMarkdownPlugin } from 'vitepress-plugin-steps'

export default defineConfig({
  markdown: {
    config: (md) => {
      md.use(stepsMarkdownPlugin)
    },
  },
})

Also import the styles in the theme:

.vitepress/theme/index.ts
ts
import 'vitepress-plugin-steps/style.css'

Syntax

Use the ::: steps container to wrap step content, with each step starting from an unordered/ordered list item:

md
::: steps

- Step One

  Description for step one

- Step Two

  Description for step two

- Step Three

  Description for step three, supports heading syntax

:::

Rendered Result:

  • Step One

    Description for step one

  • Step Two

    Description for step two

  • Step Three

    Description for step three, supports heading syntax

Released under the MIT License