Steps

Nutze den Steps-Component, um eine "Schritt-fürSchritt"-Anleitung zu erstellen.

Usage

Use the ::steps component together with ::step to display a sequence of content.

  • Title and description will be displayed in the default slot with full markdown support.
  • Supports linkable titles, Table of Content creation and Images and other components inside steps

Simple example with image:

1

Title of Step 1

This is the content of Step 1.

2

Title of Step 2

This is the content of Step 2.

Important: Avoid embedding a steps component within another steps component, this will cause some render and behavoir issues!

Steps

Indicators Color

With the color property you can change the coloring of all step indicators. Additionally it's also possible to change one specific indicator, see below.

  • Default: primary

Example: change all indicators to red

1

Title of Step 1

This is the content of Step 1.

2

Title of Step 1

This is the content of Step 1.

Line Style

Use the line property to change the styling of all step lines.

  • Possible line types line: dashed | dotted | solid
  • Default: solid

Example:

1

Title of Step 1

This is the content of Step 1.

2

Title of Step 1

This is the content of Step 1.

Rounded Style

With the rounded property you can change the roundness of the increments for all steps.

  • Possible rounded types rounded: none | md | lg | xl | 2xl | full
  • Default: full

Example:

1

Title of Step 1

This is the content of Step 1.

2

Title of Step 1

This is the content of Step 1.

Step

Indicator Color

With the color property you also have the possibility to change the color of a specifc indicator.

  • Default: primary

Example: change one indicator to purple

1

Title of Step 1

This is the content of Step 1.

2

Title of Step 1

This is the content of Step 1.

Icon

The icon property allows you to choose an icon as step indicator instead of the step count number.

Example:

Title of Step 1

This is the content of Step 1.

Title of Step 1

This is the content of Step 1.

Label

The label property allows you to add addtional text above your step title.

Example:

2023/01/10
1

Title of Step 1

This is the content of Step 1.

2024/12/12
2

Title of Step 1

This is the content of Step 1.

Table of Content

Due to the nesting and rendering of the steps component, step titles (e.g., H3 formatted with ### title) are not automatically included in the table of contents by default.

To include step titles in the table of contents, modify your nuxt.config.ts file,, setting searchDepth to at least 3:

export default defineNuxtConfig({
  // ... other settings
  content: {
    markdown: {
      toc: { depth: 2, searchDepth: 3 }
    }
  }
  // ...
})

Bereit durchzustarten?
Lass uns deine Ideen verwirklichen!

Mit deiner Vision und unserem technischen Know-how können wir gemeinsam etwas Großartiges erschaffen