UI
Stepper
Step wizard with horizontal and vertical orientation, completed/active/pending states.
Quick Preview
Account
Profile
Review
Installation
# No extra dependencies
// Copy component fromsrc/components/ui/Stepper.tsx
Usage
import Stepper from '@/components/ui/Stepper'<Steppersteps={[{ label: 'Cart', description: 'Review items' },{ label: 'Shipping', description: 'Enter address' },{ label: 'Payment', description: 'Complete order' },]}currentStep={step}onStepClick={(i) => setStep(i)}/>
Prompt Preview
Copy a prompt that recreates this UI
Paste this into your AI coding assistant to generate code that closely matches the reference, including color, size, shape, typography, spacing, and polish.
Copy-ready AI prompt
Starts from the current visual reference and project constraints.
Tweak only product-specific copy or data after the first generation pass.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
steps* | Step[] | - | Array of {label, description?} |
currentStep | number | 0 | Active step index (0-based) |
orientation | 'horizontal' | 'vertical' | 'horizontal' | Layout direction |