Multi-Step Morphing Wizard
ProAn onboarding card whose container physically reshapes to wrap each new step as the content slides in behind it.
heavy saas blocksmultistepmorphingwizardframer motion
Installation
Run the following command
~/your-project
pnpm dlx wensity@latest add multi-step-morphing-wizard
Usage
Import MultiStepMorphingWizard from @/components/wensity/multi-step-morphing-wizard and render it anywhere in your React or Next.js app. The source lands in your own repo, so every prop, class and animation below is yours to edit.
app/example.tsx
"use client";import {MultiStepMorphingWizard,type WizardStep,} from "@/components/wensity/multi-step-morphing-wizard";const steps: WizardStep[] = [{ id: "account", label: "Account", content: <div className="space-y-3"><p>Create your account</p></div> },{ id: "workspace", label: "Workspace", content: <div className="space-y-3"><p>Name your workspace</p></div> },{ id: "ready", label: "Ready", content: <div className="space-y-3"><p>You're all set!</p></div> },];export function MultiStepMorphingWizardDemo() {return (<MultiStepMorphingWizardsteps={steps}onComplete={() => console.log("Wizard complete")}/>);}
Props
| Prop | Type | Default | Description |
|---|---|---|---|
steps | WizardStep[] | - | Ordered wizard steps with id, label, and content. |
onComplete | () => void | - | Called when the wizard Finish button is pressed. |
defaultIndex | number | 0 | Optional initial step index. |
