🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

@stepperize/react

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stepperize/react

The library for building step-by-step workflows for React and React Native apps

5.1.6
latest
Source
npm
Version published
Weekly downloads
17K
7.24%
Maintainers
1
Weekly downloads
 
Created
Source

Stepperize Logo

Build Size Version Downloads

A library for creating step-by-step workflows in your apps

  • 🚀 Fast and efficient
  • 🔥 Powerful and flexible
  • 📦 Lightweight (1.1kB gzipped)
  • 🪄 Fully type-safe
  • 🔗 Composable architecture
  • 🎨 Unstyled for maximum customization

Installation

npm install @stepperize/react

Quick Start

  • Import the constructor:
import { defineStepper } from "@stepperize/react";
  • Define your steps:
const { Scoped, useStepper, steps } = defineStepper(
  { id: "step-1", title: "Step 1", description: "Description for step 1" },
  { id: "step-2", title: "Step 2", description: "Description for step 2" },
  { id: "step-3", title: "Step 3", description: "Description for step 3" },
  { id: "step-4", title: "Step 4", description: "Description for step 4" }
);
  • Use the hook in your components:
function StepperComponent() {
  const { currentStep, nextStep, prevStep } = useStepper();

  return (
    <div>
      <h2>{currentStep.title}</h2>
      <p>{currentStep.description}</p>
      <button onClick={prevStep}>Previous</button>
      <button onClick={nextStep}>Next</button>
    </div>
  );
}

How It Works

Stepperize allows you to define a series of steps with unique IDs. When you create your steps using defineStepper, you get:

  • A Scoped component for context management
  • A useStepper hook for step control
  • An array of steps for rendering
  • An utils object with useful functions

The only required field for each step is the id. You can add any additional properties you need, and they'll be fully type-safe when using the hook.

Documentation

For more detailed information on usage, configuration, and advanced features, visit our full documentation.

Contributing

We welcome contributions! Please see our Contributing Guide for more details.

License

Stepperize is MIT licensed.

FAQs

Package last updated on 01 Jun 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts