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 🙏

© 2025 – Pkg Stats / Ryan Hefner

reactjs-multi-stepper

v1.3.3

Published

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Readme

React Multi Stepper

A lightweight, customizable, and reusable multi-stepper component for React.
It allows you to create step-based workflows such as onboarding, multi-step forms, or guided processes with ease.

🎬 Demo

React Multi Stepper Demo


🚀 Features

  • ✅ Easy to use and integrate into any React project
  • 🎨 Fully customizable step styles (active, completed)
  • ⚡ Built with TypeScript for type safety
  • 🧩 Context-based state management with hooks
  • 🧪 Tested with Vitest + React Testing Library (83% coverage)

📦 Installation

npm install react-multi-stepper
# or
yarn add react-multi-stepper

🔨 Basic Usage

1. Wrap your app with MultiStepperProvider

import React from "react";
import { MultiStepperProvider, MultiStepper, useMultiStepper } from "react-multi-stepper";



function App() {
  return (
    <MultiStepperProvider steppers={[
      {
        id: 1,
        title: "Step one",
        description: "Step one description",
        children: <div className='test-step' style={{
          backgroundColor: "#0000FF90",
        }}>
          <h3>Step One Content</h3>
        </div>
      },
      {
        id: 2,
        title: "Step Two",
        description: "Step Two description",
        children: <div className='test-step' style={{
          backgroundColor: "#FF000090",
        }}>
          <h3>Step Two Content</h3>
        </div>
      },
      {
        id: 3,
        title: "Step Three",
        description: "Step Three description",
        children: <div className='test-step' style={{
          backgroundColor: "#80008090",
        }}>
          <h3>Step Three Content</h3>
        </div>
      }
    ]}
    >
      <ReactMultiStepper />
    </MultiStepperProvider>
  );
}

2. Create your stepper component

function ReactMultiStepper() {

  const { handleNextStep, setStepStatus } = useMultiStepper()

  const validateStepContent = () => {
    setStepStatus("completed")
    handleNextStep()
  }
  return <MultiStepper onClickNext={validateStepContent} />
}

🧩 API Reference

MultiStepperProvider Props

| Prop | Type | Required | Description | | ------------- | ------------ | -------- | -------------------------------------------------------------- | | steppers | StepperType[] | ✅ | Array of step configurations | | children | ReactNode | ✅ | Child components that will have access to stepper context | | options | OptionsType | (Optional) Custom icons for step statuses |

StepperType Interface

| Property | Type | Required | Description | | ------------- | ------------ | -------- | -------------------------------------------------------------- | | id | number | ✅ | Unique identifier for the step | | title | string | ✅ | Step title displayed in the stepper | | description | string | ✅ | Step description or subtitle | | children | ReactNode | ✅ | Content to render for this step |

OptionsType

| Property | Type | Required | Description | | -------------- | ---------- | -------- | ------------------------------------------- | | completedIcon| ReactNode | No | Icon to display for completed steps | | activeIcon | ReactNode | No | Icon to display for the active step |

MultiStepper Props

| Prop | Type | Required | Description | | ------------- | ------------ | -------- | -------------------------------------------------------------- | | onClickNext | () => void | ✅ | Callback triggered when the "Next" button is clicked |

useMultiStepper Hook

| Method/Property | Type | Description | | ------------- | ------------ | -------------------------------------------------------------- | | handleNextStep | () => void | Move to the next step | | setStepStatus | (status: StepStatus) => void | Update current step status | | currentStep | number | Current active step number | | totalSteps | number | Total number of steps |

Step Status Types

| Status | Description | | ------------- | -------------------------------------------------------------- | | "active" | Step is currently active and ready for user interaction | | "completed" | Step has been successfully completed |