DlStepper

List vertical step sequences using named slots

The DlStepper block component renders a vertical sequence of steps built from named slots. It adapts your content into a structured, scannable flow and integrates with Nuxt UI Stepper under the hood.

Features

  • 🪜 step-driven layout using named slots
  • ⏳ progress indicator
  • 🏷️ automatic titles from slot names
  • 🧭 vertical orientation for documentation flows
  • 🧩 theme-friendly visual adjustments
  • ⚠️ extensive error reporter

Usage

Use ::dl-stepper as a block component with steps defined as named slots in the #step-(N)|Title format. The text after the | becomes the step title; the slot content becomes the description.

::dl-stepper#step-1|Install dependenciesRun the following command to install packages.#step-2|Create configAdd your base configuration file.#step-3|Run the appStart the development server.::

Result:

Install dependencies

Run the following command to install packages.

Create config

Add your base configuration file.

Run the app

Start the development server.

Step 0 of 0

With inline code in title

You can include code formatting in titles. The component renders titles with Markdown support.

::dl-stepper#step-1|Install `@vuehouse/cli`Use your preferred package manager.#step-2|Update `app.config.ts`Add required keys.::

Result:

Install @vuehouse/cli

Use your preferred package manager.

Update app.config.ts

Add required keys.

Step 0 of 0

With other components inside

DlStepper can display other content components as well. Simply place them inside the step slot to have them rendered.

::dl-stepper#step-1|With `DlCallout`Show some callout inside the step.::dl-calloutSome callout message inside the `DlStepper` component.::#step-2|With `DlImage`Show some image inside the step.:dl-image{src="/images/ss-000.png" alt="Beautiful Image"}::

Result:

With DlCallout

Show some callout inside the step.

Some callout message inside the DlStepper component.

With DlImage

Show some image inside the step.

Beautiful Image
Step 0 of 0

Progress indicator

This feature might be easily missed, but the DlStepper component can track your progress while working with documentation. Clicking on a step number lets you indicate where you’ve stopped in the process. This is especially helpful when describing a long or complex installation or setup procedure.

Props

Here are the properties you can use with the DlStepper component. Each property should be set on an individual component instance; they do not affect the global configuration. More about defining properties in MDC components you can read here.

nametypedefaultdescription
lazybooleanundefined

Whether to lazy load the component.

Slots

namedescription
step-(N)

Named slots for steps. Use the #step-1 | Title format. The part after | becomes the step title; the slot body is the step description.

ui

Dedicated slot for defining the component’s ui object. More about styling MDC components you can read here.

Styling

Styling from Markdown

Every DocLayer component can be styled directly within your Markdown file using dedicated slot/property configuration. This allows you to customize the appearance of the component's markup elements without modifying global styles. More about components styling you can read here.

Below you'll find the default set of Tailwind classes for the component's dedicated markup elements.

<script lang="ts">const ui = defineDoclayerComponentUi({  base: ['u-space-mt'],  container: ['w-full', 'flex-col', 'gap-0'],  separator: ['w-px', 'min-w-px', 'shrink-0', 'ml-[0.1rem]'],  trigger: [    'u-box-shadow-none!',    'u-background-color!',    'border-[0.1rem]',    'border-(--app-stepper-trigger-border-color)',  ],});</script>

CSS Variables

Here is a set of CSS variables you can use to customize the appearance of the DlCode component globally. More about theming and styling with CSS variables, you can read here.

@theme {  --app-stepper-trigger-border-color: light-dark(var(--color-gray-300), var(--color-gray-700));}