Loading component…
Loading component…
Onboarding checklist with an animated progress bar, ticks that draw themselves and auto play
To reuse this local React demo, copy all files from the Code tab into the same folder, then import ProgressTracker from ./progress-tracker.
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} />;
}| 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 |
Dark mode built in: switches when an ancestor (usually <html>) has the class dark or data-theme="dark"
@import "tailwindcss"; in your main CSS file.