Steps
Step container plugin for creating step-by-step guided content in Markdown.
Installation
sh
pnpm add vitepress-plugin-stepssh
npm install vitepress-plugin-stepssh
bun add vitepress-plugin-stepssh
deno add vitepress-plugin-stepssh
yarn add vitepress-plugin-stepsUsage
vitepress-tuck Mode Recommended
ts
import { defineConfig } from 'vitepress-tuck'
import steps from 'vitepress-plugin-steps'
export default defineConfig({
plugins: [steps()],
})Learn more about vitepress-tuck
Native Mode
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:
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