Onboarding checklist
The setup list a new account sees first: a heading with progress, then the steps, one open at a time with a description and a button. You mark steps done; the list ticks them, opens the next one and says when everything is finished. For steps that must happen in order on one page, use a stepper.
Install
npx shadcn@latest add @thrum-pro/onboarding-checklistThis is a Pro component. The command works once your project has a licence key: set up Pro or see pricing.
Automatically installs icons circle, circle-check and x from the icon set.
Data shape
type OnboardingStep = {
id: string;
title: string;
description?: string;
actionLabel?: string;
done?: boolean;
};[
{ id: "workspace", title: "Create your workspace", done: true },
{ id: "team", title: "Invite your team", description: "Teammates get an email.", actionLabel: "Invite people" },
]Props
| Prop | Type | Default | Description |
|---|---|---|---|
steps | readonly OnboardingStep[] | Required | The steps in the order to do them. A step with done is ticked and closed; its button is replaced by the word Done. |
title | string | Default "Get started" | The heading. It also names the progress bar. |
description | string | – | A line under the heading in the muted colour. |
headingLevel | 2 | 3 | 4 | Default 2 | The level of the heading. Each step's title is a heading one level below it. |
onStepAction | (id: string) => void | – | Called with the step's id when its button is pressed. Mark the step done here, or later once the work behind it is finished. |
onDismiss | () => void | – | Called when the dismiss button is pressed; the checklist then hides itself. Without it there is no dismiss button. |
dismissLabel | string | Default "Dismiss checklist" | The name of the dismiss button. |
finishedTitle | string | Default "You are all set" | The heading shown in place of the steps once every step is done. |
finishedDescription | string | Default "Every step is done. You can close this list." | The line under it. |
emptyLabel | string | Default "No steps" | Text shown when steps is empty. |
sound | boolean | Default true | Play a tick for each step that gets done, a rising tone when the last one does, and the open and close sounds of the steps, if the visitor has sound on. |
className | string | – | Sets the size. The checklist fills the width it is given. |
Motion and sound
Motion
- First draw: the progress bar is at its reading and the first step still to do is open. Nothing grows on load.
- A step that gets done closes and the next one opens, each in 200 ms. The bar moves to the new reading in about 400 ms with no overshoot.
- The check mark of a step and the finished state appear at once.
- Reduced motion: steps open and close and the bar moves instantly.
Sound
- A tick when a step gets done, and a rising two-note tone instead when it is the last one.
- Opening or closing a step by its title plays the open or close sound. A step that closes because it got done is silent apart from its tick.
- The dismiss button plays the close sound.
Sound is off until the visitor turns it on. Pass sound={false} to keep this component silent. How sound works
Accessibility
- The steps follow the accordion pattern: each title is a button inside a heading, with aria-expanded, and one step is open at a time.
- Each title button is named with its state after the title, as in Invite your team, to do. A done step shows a check mark in a circle instead of an empty circle, so its state never rests on colour.
- The progress bar is named by the heading and reads like 3 of 5 done. The same words above it are a polite live region, so a change is read once.
- The checklist is a panel surface: under frosted glass it turns translucent and its text keeps 4.5:1 contrast.
| Keys | Action |
|---|---|
| Tab | Move through the dismiss button, the step titles and the open step's button. |
| Enter / Space | On a step title: open it and close the one that was open, or close it. |
| Enter / Space | On a step's button: call onStepAction. Once the step is done the focus moves to the next open step's title, or to the finished message. |
Source
The source comes with Pro
TypeScript source · Copy-paste ready · MIT-compatible for client projects · Includes all dependencies
Files and dependencies
- Adds
components/onboarding-checklist.tsx- Packages
motion- Brings along
- AccordionButtonCardIcon buttonChart foundationsMotion tokensSound engine
- Icons
circlecircle-checkx
Changelog
- 1.0.0 · 2026-12-03First release.