npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

vue3-step-wizard

v0.5.7

Published

A Vue 3 step-wizard component, with no dependencies

Downloads

757

Readme

vue3-step-wizard

A Vue 3 + TypeScript wizard component.

Install

npm install vue3-step-wizard

Then import the stylesheet once in your app entry:

import "vue3-step-wizard/wizard-style.css";

Usage

<script setup lang="ts">
import { ref } from "vue";
import { Wizard, type WizardStep, type WizardExpose } from "vue3-step-wizard";
import "vue3-step-wizard/wizard-style.css";

import StepDomain from "./steps/StepDomain.vue";
import StepBusiness from "./steps/StepBusiness.vue";
import StepFinish from "./steps/StepFinish.vue";

const steps: WizardStep[] = [
  { name: "domain", title: "Domain", component: StepDomain },
  {
    name: "business",
    title: "Business info",
    component: StepBusiness,
    backVisible: true,
    nextVisible: true,
    nextDisabled: false,
    backDisabled: false,
    stepViewItemClickable: true,
  },
  { name: "finish", title: "Finish", component: StepFinish },
];

const current = ref(0);

const handleCustomEvent = (payload?: unknown) => {
  console.log("Custom event payload", payload);
};

const handleStepChanged = (payload: { from: string | null; to: string }) => {
  console.log("Step changed", payload);
};

const wizardRef = ref<WizardExpose | null>(null);

const goToFinish = () => {
  wizardRef.value?.moveTo("finish");
};

const hideBusiness = () => {
  wizardRef.value?.hideStep("business");
};

const showBusiness = () => {
  wizardRef.value?.showStep("business");
};
</script>

<template>
  <Wizard
    ref="wizardRef"
    v-model="current"
    :steps="steps"
    :allow-step-click="true"
    :show-controls="true"
    @custom-event="handleCustomEvent"
    @step-changed="handleStepChanged"
  />
</template>

Each step component should emit next and back to move through the wizard. If you use custom-event, include the step name in the payload so the parent can identify the source.

Wizard instance methods (via ref) let you move or toggle steps at runtime:

  • moveTo(stepName)
  • hideStep(stepName)
  • showStep(stepName)

Wizard emits:

  • step-changed with { from, to } step names.
  • custom-event forwarded from the active step component.

Each step can optionally control the wizard buttons when show-controls is true:

  • nextVisible (boolean, default true)
  • nextDisabled (boolean, default false)
  • backVisible (boolean, default currentStep > 0)
  • backDisabled (boolean, default false)

Each step can also control whether it is clickable in the left step list when allow-step-click is true:

  • stepViewItemClickable (boolean, default true)

Example step component:

<script setup lang="ts">
const emit = defineEmits<{
  (event: "next"): void;
  (event: "back"): void;
  (event: "custom-event", payload?: unknown): void;
}>();
</script>

<template>
  <div>
    <button type="button" @click="emit('back')">Back</button>
    <button type="button" @click="emit('next')">Next</button>
    <button
      type="button"
      @click="emit('custom-event', { step: 'domain', source: 'step-domain' })"
    >
      Fire custom event
    </button>
  </div>
</template>

Theming

All colors are driven by CSS variables defined in wizard-style.css. Override them in your app to theme the wizard.

:root {
  --accent: #f5b24a;
  --accent-2: #5be4ff;
  --text: #f5f7fb;
  --muted: #9aa3b2;
  --wizard-ink: #13161c;
  --wizard-white: #ffffff;
  --wizard-surface-750: rgba(18, 23, 36, 0.75);
  --wizard-surface-900: rgba(18, 23, 36, 0.9);
  --wizard-border-weak: rgba(255, 255, 255, 0.08);
  --wizard-border: rgba(255, 255, 255, 0.1);
  --wizard-shadow-strong: rgba(0, 0, 0, 0.35);
}

To override fonts, set them on the relevant classes in your app stylesheet:

.__wizard-panel h1 {
  font-family: "Your Display Font", sans-serif;
}

.__wizard-page {
  font-family: "Your UI Font", sans-serif;
}