Not only React anymoreStepperize now runs in Vue, Svelte, Solid, Angular, Lit, and HTML
ReactStepper Studio: build a flow with shadcn/ui, install it in one command

The type-safe way to build multi-step flows.

Define your steps once. Stepperize infers every id, guards every move, and tells you exactly why a navigation failed, while your markup, forms, and design system stay yours.

$ npm i @stepperize/react
checkout.tsxCheckout preview, in ReactLive preview

The code behind the preview

import { defineStepper } from "@stepperize/react";
import { useState } from "react";
const checkout = defineStepper([
{ id: "account", title: "Account" },
{ id: "shipping", title: "Shipping" },
{ id: "review", title: "Review" },
{ id: "done", title: "Done" },
]);
export function Checkout() {
const [email, setEmail] = useState("");
const stepper = checkout.useStepper({
async guard({ from, direction }) {
if (direction !== "next") return true;
if (from.id === "account") return isEmail(email);
if (from.id === "review") await placeOrder();
},
});
return stepper.match({
account: () => <Account onEmail={setEmail} />,
shipping: () => <Shipping />,
review: () => <Review />,
done: () => <Done />,
});
}

Account

Where we send the receipt

1 / 4

The guard blocks Continue until this is a valid email.

current.id"account"index0isPendingfalse
result →press Continue

Live: type an email, step through, then place the order. The highlighted lines follow the panel, in whichever framework you pick for the code: every binding runs the same flow.

Why Stepperize

Stop hand-rolling step state.

Every multi-step flow starts with an index, a switch, and clamping logic, then quietly rots as steps and rules pile up. Stepperize replaces all of it with one typed instance.

Compare code
  • An index to keep in sync with the steps
  • Clamping by hand on every move
  • Stringly-typed checks: a typo still compiles
  • Validation gating wired by hand, per step
checkout.tsx
Compiles. Broken.
const steps = ["shipping", "payment", "review"];const [step, setStep] = useState(0); // clamp by hand, every timeconst next = () =>  setStep((s) => Math.min(s + 1, steps.length - 1)); // stringly-typed: a typo still compilesswitch (steps[step]) {  case "shiping": return <Shipping />; // 💥  case "payment": return <Payment />;  // forgot review? no warning.}

More than a stepper

Real flow logic, not just step tracking.

Most stepper libraries stop at "which step is active". Stepperize handles the hard parts too: validation that blocks, declarative branching, and async transitions with retry. They are options of the core, so they read the same in every framework.

Live demos built with the React blocks. The options behind them work in every binding.

See every flow-logic block

Built for production

Small API. Every edge covered.

One typed definition powers navigation, rendering, validation and state, without dictating a single line of your markup.

stepper.goTo("")
  • ab"shipping"
  • ab"payment"
  • ab"review"
stepper.goTo("paymnt");
ts(2345) Argument of type "paymnt" is not assignable to parameter of type "shipping" | "payment" | "review".

Your step ids are a type

Ids become a literal union the moment you define the steps. Typos and missing cases fail in your editor, not in production. No generics to wire up.

Learn more about Your step ids are a type
const result = await stepper.next();
if (!result.accepted) {
result.reason
// "invalid""guard""policy""pending"
}

Every move has a result

Navigation resolves to a typed result. Check accepted, then handle the exact reason a move was refused.

Learn more about Every move has a result
checkout.useStepper()
<checkout.Provider>
useStepperContext(s => s.current.id)

Local or shared, your call

Each useStepper() is its own flow. A Provider shares one, and selectors keep re-renders focused.

Learn more about Local or shared, your call
2
3
state=completestate=currentstate=pending

Accessible primitives

Unstyled Stepper.* components ship roles, ARIA and keyboard navigation. Style them through data attributes.

Learn more about Accessible primitives
  • React Hook Form
  • TanStack Form
  • Conform
  • useState
  • Zod
  • Valibot
  • ArkType

next() validates

New in v9

Attach a Standard Schema per step and next() checks it for you. Your fields stay where they are: React Hook Form, TanStack Form, Conform, or useState.

Learn more about next() validates

One engine, your framework

React first. Not React only.

You define the flow once, in plain TypeScript. Each framework then reads it the way that framework reads anything else. Pick yours: the definition does not change.

checkout.ts
Same in every framework
import { defineStepper } from "@stepperize/react"; export const checkout = defineStepper([  { id: "shipping", title: "Shipping" },  { id: "payment", title: "Payment" },  { id: "review", title: "Review" },]);
Checkout.tsx
function Checkout() {  const stepper = checkout.useStepper();   return (    <section>      <h2>{stepper.current.title}</h2>      <button onClick={() => stepper.next()}>Continue</button>    </section>  );}

React

@stepperize/react

A hook. The component re-renders when the flow changes.

React docs

In every framework

  • Typed step ids
  • Validation in next()
  • Branching
  • Snapshots to save and resume
  • Accessible primitives

Only in React, for now

  • Blocks: shadcn/ui components, copied in with the shadcn CLI
  • Stepper Studio, which writes React and shadcn/ui code
  • Guides for React Hook Form, TanStack Form and Conform

shadcn/ui is a React component library, so the blocks and the Studio are React. Everything else on this page works in every framework.

For React, with shadcn/ui

28 blocks. Copy, paste, own every line.

Production-ready flows built with Tailwind and shadcn/ui, installed with the shadcn CLI. Each one is your code, with nothing to eject. They are React because shadcn/ui is; the headless core they run on works in every framework.

Approval TimelineAsync & StatusView code
Plan PickerCommerceView code
AI WorkflowFlow LogicView code
Two-Factor SetupAuth & VerificationView code
CI/CD PipelineAsync & StatusView code

Ship your first flow in minutes.

Install the package, define your steps, render. The flat, typed API gets out of your way.

$ npm i @stepperize/react