Frontendx
README.md
SOLUTION.md
main.tsxentry
App.tsx
App.css
index.html
vite.config.ts
Installed
react@^19.2.0
react-dom@^19.2.0

Multi-Stepper Component in React

mediumreactstepperwizardusestatereact.cloneelementsde1sde2navigationmulti-stepAtlassianAmazonMicrosoftUI Component

Prompt

Build a reusable multi-step wizard component that accepts a list of React components as steps. Renders a progress bar/step indicator showing active and completed steps with a connecting progress line. Exposes onNext and onPrev navigation callbacks to each step's child component via React.cloneElement so children can trigger navigation at will.

Store currentStep index in useState. Render list[currentStep] dynamically. Pass onNext
Test Results

Multi-Stepper Component in React

Build a reusable multi-step wizard component that accepts a list of React components as steps. Renders a progress bar/step indicator showing active and completed steps with a connecting progress line. Exposes onNext and onPrev navigation callbacks to each step's child component via React.cloneElement so children can trigger navigation at will.