Calm motion: animations on this site only fade, with no movement
OnboardingChecklist
The few steps to get started, with progress that stays
A short list of first steps (fill in a profile, invite someone, publish a page), with a progress bar. It remembers where the person got to. Use it for the handful of things that a new account needs to do. For a one-time walk through the screen, use Tour. For steps inside one task, use Stepper or Steps.
Three steps
1 of 3 done
itemsare{ id, label, description?, action? }.v-model:doneis the ids that are finished. Each step is a real checkbox, so it works by keyboard and is announced. Ticking is the person's to do, and your code can add ids when the app sees the work done.actionadds a button ("Open", "Start") that emitsselectwith the item (take them to the place) and goes away once the step is done.finishfires once when the last step is ticked, and a closing line appears (#completereplaces it).- The header folds the list away (
v-model:collapsed,aria-expanded). The × dismisses it for good (v-model:dismissed,dismiss).persist="welcome"keeps progress, folded state and dismissal inlocalStorage, read after mount so a server-rendered page agrees. floatingpins it to the bottom corner of the window. The progress bar is named "2 of 5 done" for screen readers.labelstranslates it and the other wording.
Usage
ts
import { BlessOnboardingChecklist } from "blessing-ui";API
Props
| Name | Type | Default | Description |
|---|---|---|---|
items* | BlessChecklistItem[] | — | |
title | string | "Getting started" | |
persist | string | — | remember progress, collapsed state and dismissal under this key (localStorage) |
floating | boolean | — | pin it to the bottom corner of the window |
dismissible | boolean | true | a close button that dismisses it for good |
labels | Partial<{ progress: (done: number, total: number) => string; complete: string; dismiss: string; }> | — | |
done | string[] | [] | ids of the finished steps |
collapsed | boolean | false | |
dismissed | boolean | false |
Events
| Name | Payload | Description |
|---|---|---|
select | [item: BlessChecklistItem] | |
dismiss | [] | |
update:dismissed | [value: boolean] | |
finish | [] | |
update:collapsed | [value: boolean] | |
update:done | [value: string[]] |
Slots
| Name | Scope | Description |
|---|---|---|
complete | — |