A vertical timeline-style stepper for showing milestones, order tracking, or project phases. Supports custom icons and multiple variants.
Install
Add it to your project
Run this in a project set up for shadcn/ui. It writes the files and installs the npm packages.
First time: connect the Infinity UI registry
- Create a personal token on your Tokens page.
- Put it in
.env.localasINFINITYUI_TOKEN. - Add the registry to
components.json:
{
"registries": {
"@infinityui": {
"url": "https://infinityui.io/r/{name}.json",
"headers": {
"Authorization": "Bearer ${INFINITYUI_TOKEN}"
}
}
}
}Using Claude Code, Codex, Cursor, Lovable or v0? See CLI & MCP for a setup prompt.
npm packages it adds
- motion
- lucide-react
Code
"use client";
import {
MilestoneStepper,
MilestoneData,
} from "@/registry/ruixenui/milestone-stepper";
const milestones: MilestoneData[] = [
{
id: 1,
title: "Order Placed",
description: "Your order has been confirmed",
date: "Jan 15",
},
{
id: 2,
title: "Shipped",
description: "Package handed to courier",
date: "Jan 17",
},
{
id: 3,
title: "In Transit",
description: "On the way to destination",
date: "Jan 18",
},
{
id: 4,
title: "Delivered",
description: "Package delivered successfully",
},
];
export default function MilestoneStepperDemo() {
return (
<div className="w-full max-w-sm mx-auto p-8">
<MilestoneStepper milestones={milestones} currentMilestone={2} />
</div>
);
}
































