Build a stepper showcase with progress indication, step validation, icon states,…
- User
Build a stepper showcase with progress indication, step validation, icon states, vertical/horizontal layouts, and smooth transition animations.
Assistant
I'll build a polished stepper showcase. Let me start by updating the CSS with custom animations, then create the components.
Now let me create the core Stepper component with all the variants.
Now let me build the multi-step form demo with validation.
I used a
.inputclass — let me update to use actual Tailwind classes.Let me add an input utility class in CSS.
Now let me create the icon-states showcase and vertical stepper demo.
Now let me put it all together in the App component.
The build succeeded. Here's what I built:
Stepper Showcase
A polished, dark-themed showcase page demonstrating a flexible
Steppercomponent with:🎯 Progress indication
- Gradient progress bar with shimmer effect (fuchsia → violet → indigo)
- Connector lines between circles that fill as steps complete
- Numeric progress percentage driven by completed-step count
✅ Step validation
- Live multi-step form (Account → Preferences → Review → Complete) with validation for name, email, and role
- "Next" button is disabled until fields pass
- Validation errors propagate up to the stepper as red error states
- Users can jump back to previously completed steps but can't skip ahead
🎨 Six icon states
pending(muted outlined),active(pulsing ring),completed(animated green checkmark),error(red with shake),skipped(dashed outline),disabled(muted locked)- Dedicated grid showcase explaining each state
📐 Two layouts
- Horizontal (for the form and minimal variant)
- Vertical timeline (used for an order-tracking demo with per-step content cards)
✨ Smooth transitions
pulseRing— active step attention ringcheckDraw— SVG stroke-dashoffset animated checkmark on completionerrorShake— horizontal shake on validation failureicon-pop— scale-bounce when icons change statefade-slide-up— step content transitions between stepsshimmer— moving highlight on the progress bar- 500ms eased connector-line fills
Files:
src/components/Stepper.tsx— reusable primitive (horizontal/vertical, 3 variants, error indices, click handlers)src/components/MultiStepForm.tsx— interactive form demo with validationsrc/components/IconStates.tsx— state showcase gridsrc/components/VerticalAndMinimal.tsx— order timeline + compact variantsrc/App.tsx— assembled showcase with hero, sections, footersrc/index.css— custom keyframes and ambient radial-gradient background
Files built:
src/index.css,src/components/Stepper.tsx,src/components/MultiStepForm.tsx,src/components/IconStates.tsx,src/components/VerticalAndMinimal.tsx,src/App.tsx,index.html
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.