Onboarding Checklist
FreeA setup checklist for a new account or workspace: a progress ring and "3 of 5 done", a native checkbox and a link or button per step, optional steps that say they do not count toward completion, and a `completed` event when the last required step is done. The steps — and whether each is done — stay yours.
</>sv-onboarding-checklist onboardingchecklistsetupgetting startedprogresssaasactivation
import { SvOnboardingChecklistComponent } from '@styloviz/overlays/onboarding-checklist';Demo & usage
Basic usage
Usage example — open the gallery for the full interactive demo.
An interactive demo for this component lives in the gallery.
Open live demoMore examples
Apply a toggle
example.htmlAngular
6 lines
<!-- The checklist never flips done itself: it emits, you update. --> <sv-onboarding-checklist [steps]="steps()" (stepToggle)="mark($event)" /> mark({ step, done }: SvOnboardingStepToggle): void { this.steps.update((list) => list.map((s) => (s.id === step.id ? { ...s, done } : s))); }
Links, buttons and optional steps
example.htmlAngular
7 lines
<sv-onboarding-checklist [steps]="[ { id: 'invite', title: 'Invite your team', href: '/settings/team', actionLabel: 'Invite' }, { id: 'data', title: 'Connect a data source', actionLabel: 'Connect' }, { id: 'theme', title: 'Pick a theme', optional: true } ]" (stepAction)="open($event.id)" />
Dismissible and collapsible, remembered
example.htmlAngular
6 lines
<sv-onboarding-checklist [steps]="steps()" [dismissible]="true" [collapsible]="true" [(open)]="prefs.setupOpen" [(collapsed)]="prefs.setupCollapsed" />
Steps from your API
example.htmlAngular
5 lines
<sv-onboarding-checklist [steps]="setup.value() ?? []" [loading]="setup.isLoading()" [error]="setup.error() ? 'Could not load your setup.' : null" (retry)="setup.reload()" />
When to use
The first screens of a SaaS product, admin panel or store: the handful of things a new account must do before it is useful. A "Get set up" card on a dashboard that goes away once setup is done or dismissed. Anywhere progress is a short list of discrete tasks rather than a percentage — use `sv-progress-bar` for a single running job and `sv-stepper` for a linear form.
Async states
- loading
- error
- retry
Inputs
| Name | Type | Default | Description |
|---|---|---|---|
| steps | readonly SvOnboardingStep[] | [] | The steps, in order. Each one's `done` is yours: tick a box and the checklist emits `stepToggle`; it shows the change once you hand back steps with `done` updated. Rows with an empty or duplicate `id` are skipped. |
| loading | boolean | false | True while the host is fetching the steps — shows a skeleton in place of the list. |
| error | SvDataError | string | null | null | The fetch failed — shows the error with a Try again button that emits `retry`. |
| title | string | null | null | The heading. Null uses the `onboardingTitle` label ("Get set up"). |
| description | string | null | null | A line under the heading. |
| headingLevel | SvOnboardingChecklistHeadingLevel | 3 | Heading level for the title — match the page outline. |
| labels | Partial<SvOnboardingChecklistLabels> | {} | Per-instance text, merged over the registry's `overlays` labels. |
| variant | SvOnboardingChecklistVariant | 'card' | `card` (bordered panel) or `inline` (no chrome, smaller ring). |
| checkable | boolean | true | Render a native checkbox per step so the user can tick it. `false` shows read-only state — for steps your app detects as done by itself. |
| dismissible | boolean | false | Show a dismiss button that closes the checklist and emits `dismissed`. |
| collapsible | boolean | false | Show a toggle that hides the steps and keeps the heading and progress. |
| collapsed | boolean (two-way) | false | Whether the steps are hidden. Two-way: `[(collapsed)]`, so you can remember it. |
| open | boolean (two-way) | true | Whether the checklist renders at all. Dismissing sets it `false`. Two-way: `[(open)]`, so a dismissal can be stored and restored. |
Outputs
| Event | Payload type | Description |
|---|---|---|
| stepToggle | SvOnboardingStepToggle | The user ticked or unticked a step: the step and the state they asked for. Update `done` to apply it. |
| stepAction | SvOnboardingStep | The user activated a step's action — its link (which also navigates) or its button. |
| dismissed | void | The user dismissed the checklist. |
| completed | void | Every required step became done. Fires on the change, once — not on a checklist that arrives already complete, and not again until it is incomplete and completed again. |
| retry | void | The host should re-run the failed fetch of the steps. |
| collapsedChange | boolean | Emits the new `collapsed` whenever it changes — the output half of `[(collapsed)]`. |
| openChange | boolean | Emits the new `open` whenever it changes — the output half of `[(open)]`. |
Customization & theming
Two variants: `card` (bordered panel with a 64 px ring) and `inline` (no chrome, a 48 px ring) for a panel or sidebar that already frames it. The ring is the kit's own `sv-progress-ring`, painted from the `primary-*` tokens, so a template that remaps primary recolours it. Each step takes an `href` (rendered as a link; unsafe schemes such as `javascript:` are dropped) or just an `actionLabel` (rendered as a button that emits `stepAction`). The action hides once the step is done. `headingLevel` (2–4) fits the title into your page outline; `title` and `description` replace the default heading. Every string comes from the `overlays` labels (`onboarding*` keys) — `provideSvLabels(SV_OVERLAYS_LABELS_DE)` or the per-instance `labels` input. Loading, error with retry and empty states from `@styloviz/core`, so it wires to a real endpoint like every data component.
Best practices
Do: Keep `done` on your server. Mark steps your app can detect (email verified, first product added) itself, and use `[checkable]="false"` when every step is detected. Do: Mark nice-to-have steps `optional`: they stay visible but do not hold completion back, and the checklist says so. Do: Store a dismissal through `[(open)]`, so the card does not come back on every visit. Don't: Don't list more than five to seven required steps. A long checklist reads as a chore, not a head start. Tip: `(completed)` fires on the change, not on a list that arrives complete — a good moment for a toast or a confetti-free "You're all set".
Accessibility
A `<section>` named by its heading; the steps are an ordered list. Each step is a native `<input type="checkbox">` with a `<label>` and `aria-describedby` pointing at its description, so Space toggles it and the state is announced. Read-only steps read "done" or "not done yet" after the title. A step's action is a real link or button, described by the step title, so "Start" is never announced without context. The ring is a `role="progressbar"` whose value text is the same "3 of 5 done" shown beside it. Completion is announced through a polite `role="status"` region. The collapse toggle carries `aria-expanded` and `aria-controls`; the dismiss button has an accessible name.
Feedback on Onboarding Checklist
Spotted a gap in this page, or something that didn't work as described? Comments are GitHub Discussions in the public styloviz/community repo, so posting needs a GitHub account.