The library for building step-by-step workflows for React and React Native apps
npm install @stepperize/react




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
``bash`
npm install @stepperize/react
1. Import the constructor:
`tsx`
import { defineStepper } from "@stepperize/react";
2. Define your steps (as arguments):
`tsx`
const { Scoped, useStepper, steps, utils } = 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" }
);
3. Use the hook:
`tsx
function StepperComponent() {
const stepper = useStepper();
return (
{stepper.state.current.data.description}
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 functionsThe 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.For more detailed information on usage, configuration, and advanced features, visit our full documentation.
We welcome contributions! Please see our Contributing Guide for more details.
Stepperize is MIT licensed.