vueintermediatemit

Vue Stepper

A multi-step wizard indicator.

5.3k1.1k436196

About this module

A Vue stepper that tracks the current step, supports click-to-navigate, and highlights complete steps with checkmarks.

#vue#stepper#steps#wizard

Source code

Installation

  1. 1

    Install Vue

    Create a Vue 3 project or add the component to an existing one.

    npm create vue@latest
  2. 2

    Create the component

    Create VueStepper.vue and paste the source below.

  3. 3

    Import and use

    Import the component in your page or parent component and render it.

Usage

  1. 1

    Import the component

    Import VueStepper in a parent component.

    import VueStepper from "./components/VueStepper.vue";
  2. 2

    Register and render

    Register it in your setup and render it in the template.

    <script setup>
    import VueStepper from "./components/VueStepper.vue";
    </script>
    
    <template>
      <vue-stepper />
    </template>
Overview
Categorycomponents
Frameworkvue
Difficultyintermediate
Licensemit
Versionv1.0.0
Features
  • Single-file component
  • TypeScript-friendly
  • Accessible by default
Traits
  • ResponsiveYes
  • Dark modeYes
  • AccessibleYes
  • Production readyYes
Props
stepsstring[]

Labels for each step.

Default: []

currentnumber

Index of the active step.

Default: 0

modelValuenumber

Bound step index (v-model).

Default: 0

Browser support
  • Chrome 90+
  • Firefox 90+
  • Safari 15+
  • Edge 90+

Related modules

Command Palette

Search modules and jump anywhere