A compact card of first-run steps for a dashboard corner: a count and a progress bar, steps that are done, next, available or locked with the reason, a call to action and an optional how-to on each, snooze and dismiss, and a short completion message. Controlled: you own which steps are done.
On this page
- First-run setup steps
- Connect your agent steps
- Dashboard corner card
- Trial activation guide
- Locked step reasons
Examples
Completed
Installation
npx knowns-ui@latest add onboarding-checklistPaste this into your coding agent (Claude Code, Cursor, Codex). It checks your project, sets up the registry, runs the install and verifies it.
Install Onboarding checklist from Knowns UI into this project. Work step by step, show me each change, and ask before you edit files outside this project.
Context: Knowns UI (https://ui.knowns.dev) is a shadcn registry. Items land in the project as source files. Docs: https://ui.knowns.dev/docs/onboarding-checklist
1. Check the project first. Stop and tell me if any of these is missing:
- React 19 and Tailwind CSS v4.
- A components.json at the project root. If there is none, ask me before running `npx knowns-ui@latest init --no-key` (it runs shadcn init when needed, then adds the registries).
2. Run:
```bash
npx knowns-ui@latest add onboarding-checklist
```
It writes these files:
- lib/knowns/run.ts
- lib/knowns/json.tsx
- lib/knowns/status.ts
- lib/knowns/tone.ts
- lib/knowns/types.ts
- lib/knowns/use-abortable.ts
- lib/knowns/utils.ts
- components/ui/knowns/spinner.tsx
- components/ui/knowns/button.tsx
- lib/knowns/motion.tsx
- lib/knowns/motion-utils.ts
- components/ui/knowns/use-floating.ts
- components/ui/knowns/tooltip.tsx
- components/ui/knowns/tooltip-utils.ts
- components/ui/knowns/progress.tsx
- components/ui/knowns/blocks/onboarding/onboarding-checklist.tsx
- components/ui/knowns/blocks/onboarding/onboarding-utils.ts
and installs these npm packages: clsx@^2.1.1, tailwind-merge@^3.7.0, class-variance-authority@^0.7.1.
3. While it runs:
- It also adds a few @keyframes (all named kn-*) to the global CSS file (globals.css or the file components.json points at). Let it: they only add animations.
- If it asks to overwrite files under lib/knowns/: these are shared by every Knowns UI item. List them, say whether I changed them (check git), and ask me before you answer.
- If it asks to overwrite any other file, show me the diff and ask me.
4. Verify:
- Every file in the list above exists.
- The project type-checks (for example `npx tsc --noEmit`) and the dev build has no new errors.
5. Use it: follow the examples and props on https://ui.knowns.dev/docs/onboarding-checklist, and ask me if anything about my data is unclear.
If the Knowns UI MCP server is connected (https://ui.knowns.dev/docs/ai-and-mcp), use get_component({ name: "onboarding-checklist" }) or search_docs for details.
Finish with a short summary: the files you added or changed, the packages you installed, and anything I still need to do.Props
- steps
{ id, title, description?, cta?, how?, done?, locked? }[]- You own `done`. `locked` can be a string: it is shown as the reason. The first step that is neither done nor locked is the current one and opens by itself.
- cta
{ label, href?, onClick? }- A button, or a link when `href` is set. Fires `onClick` and then `onStepAction(id)`.
- how
ReactNode- Extra help behind a native How to disclosure inside the open step.
- title / description
ReactNode- Default
"Get set up" - The heading and an optional line under it.
- onSnooze / onDismiss
() => void- Each shows its quiet button. The block never hides itself: set `dismissed` or unmount it.
- dismissed
boolean- Default
false - Renders nothing.
- completeTitle / completeDescription
ReactNode- The completion message, shown when every step is done.
| Prop | Type | Default | Description |
|---|---|---|---|
| steps | { id, title, description?, cta?, how?, done?, locked? }[] | - | You own `done`. `locked` can be a string: it is shown as the reason. The first step that is neither done nor locked is the current one and opens by itself. |
| cta | { label, href?, onClick? } | - | A button, or a link when `href` is set. Fires `onClick` and then `onStepAction(id)`. |
| how | ReactNode | - | Extra help behind a native How to disclosure inside the open step. |
| title / description | ReactNode | "Get set up" | The heading and an optional line under it. |
| onSnooze / onDismiss | () => void | - | Each shows its quiet button. The block never hides itself: set `dismissed` or unmount it. |
| dismissed | boolean | false | Renders nothing. |
| completeTitle / completeDescription | ReactNode | - | The completion message, shown when every step is done. |
Done steps are plain rows and locked steps cannot be opened; every other step is a disclosure button with aria-expanded. The count is also announced politely when it changes. The completion check pops in once and is still when reduced motion is on.
What it handles
- 01Counts done steps for you, shows 3 of 5 beside the title and feeds the same number to a small progress bar.
- 02Opens the first step that is neither done nor locked, follows it as steps finish, and lets people open any other available step.
- 03Renders done steps as struck-through plain rows and locked steps with a lock mark and the reason when `locked` is a string.
- 04Runs a step's call to action as a link when it has an `href`, or a button otherwise, and fires `onStepAction` with the step id in both cases.
- 05Offers an optional How to disclosure inside the open step, plus Remind me later and Dismiss buttons that call `onSnooze` and `onDismiss`.
- 06Swaps the list for a completion message when every step is done, and renders nothing when `dismissed` is true because it never hides itself.
States
- First render
- Nothing. The current step is already open
- none
- Open or close a step
- The chevron turns; the panel shows at once
- 120ms, ease out
- A step finishes
- The row becomes a done row and the next step opens
- none
- All steps done
- The check mark pops in on the completion message
- 280ms, ease out
- Reduced motion
- The completion check appears without the pop
- 0ms
| State | What moves | Timing |
|---|---|---|
| First render | Nothing. The current step is already open | none |
| Open or close a step | The chevron turns; the panel shows at once | 120ms, ease out |
| A step finishes | The row becomes a done row and the next step opens | none |
| All steps done | The check mark pops in on the completion message | 280ms, ease out |
| Reduced motion | The completion check appears without the pop | 0ms |
Works with
When to use
When to use
- A first-run card in a dashboard corner that walks a new user through the steps that matter.
- Steps that depend on each other, where a locked step should say why.
When not to use
- One flow that takes over the screen, one step at a time: use Setup Wizard.
- Showing progress of a single task: use Progress.
Using with AI
Use Copy page for AI above to give your assistant this page, Copy prompt under the install command to have it installed and wired to your data, or connect the Knowns UI MCP server and just ask:
- Add the Knowns UI Onboarding Checklist to my app and wire it to my own data.
- I need a first-run card in a dashboard corner that walks a new user through the steps that matter. Set that up with the Knowns UI Onboarding Checklist.
- Which Onboarding Checklist props do I need for a minimal setup? Show me a short example.
With the server connected, your assistant calls get_component({ name: "onboarding-checklist" }) and search_docs({ query: "onboarding checklist" }).