affectUI › Components › Feedback
Progress Tracker
Onboarding checklist with an animated progress bar, ticks that draw themselves and auto play.
Free and open source (MIT). Install: npx shadcn@latest add https://www.affectui.com/r/progress-tracker.json · Import from @/components/ui/progress-tracker
When to use
- Onboarding checklists that guide new users through their first steps
- Any short list of tasks where progress should feel rewarding
When not to use
- Long task lists – past roughly eight steps the card gets hard to scan
- Long step labels – each step stays on one line and cuts off with an ellipsis
- Steps that must happen in a fixed order – use a stepper that locks the next step
Usage
import { ProgressTracker } from "@/components/ui/progress-tracker";
const steps = [
{ id: "tools", label: "Connect your imported tools" },
{ id: "notify", label: "Turn on notifications" },
{ id: "project", label: "Create a project", done: true },
];
export function Onboarding() {
return <ProgressTracker title="Getting started" steps={steps} onChange={save} />;
}Props
| Name | Type | Default | Description |
|---|---|---|---|
steps | ProgressStep[] | Each step has an id, a label, an optional done flag and icon | |
title | string | "Getting started" | Heading above the bar |
autoPlay | boolean | false | Ticks the open steps one by one and starts over – stops when someone clicks or types |
interval | number | 2200 | Pause between two automatic steps, in ms |
onChange | (steps: ProgressStep[]) => void | Called with every step and its state | |
className | string | Extra class on the card |
Keyboard
- Tab: Move between the steps
- Space / Enter: Tick or untick the focused step
Accessibility
- Each step is a checkbox with aria-checked; the bar is a progressbar with the count as text
- Any click or key press stops the automatic play, so it never fights the user
Responsive
- Dark mode built in: switches when an ancestor (usually <html>) has the class dark or data-theme="dark"
Requirements
- React 19
Related
- Button – Primary, secondary, ghost and destructive buttons with icons, sizes and a shimmering loading state
- Chat Composer – Prompt composer with model picker, voice input, app connections and approval request