About
A multi-step navigation component with numbered, icon or progress-bar indicators that guides users through checkout, onboarding or setup flows and renders the active step's content.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Stepper to your project and fits it to your theme.
Code
How Stepper is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
"use client";
import {
Stepper,
StepperContent,
StepperIndicator,
StepperItem,
StepperNav,
StepperPanel,
StepperSeparator,
StepperTrigger,
} from "@/components/ui/stepper";
const steps = [1, 2, 3, 4];
export default function StepperDemo() {
return (
<Stepper defaultValue={2} className="w-full max-w-md space-y-8">
<StepperNav>
{steps.map((step) => (
<StepperItem key={step} step={step}>
<StepperTrigger>
<StepperIndicator>{step}</StepperIndicator>
</StepperTrigger>
{steps.length > step && (
<StepperSeparator className="group-data-[state=completed]/step:bg-primary" />
)}
</StepperItem>
))}
</StepperNav>
<StepperPanel className="text-sm">
{steps.map((step) => (
<StepperContent
key={step}
value={step}
className="text-muted-foreground flex items-center justify-center"
>
Step {step} content
</StepperContent>
))}
</StepperPanel>
</Stepper>
);
}
















