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

NameTypeDefaultDescription
stepsProgressStep[]Each step has an id, a label, an optional done flag and icon
titlestring"Getting started"Heading above the bar
autoPlaybooleanfalseTicks the open steps one by one and starts over – stops when someone clicks or types
intervalnumber2200Pause between two automatic steps, in ms
onChange(steps: ProgressStep[]) => voidCalled with every step and its state
classNamestringExtra 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