Skip to content
English
Onboarding checklist comes with Pro. Its preview shows once you unlock it.

Usage

import { DashboardOnboarding } from './DashboardOnboarding.jsx'

// Without steps the checklist shows its sample bakery setup. Wire it to yours:
<DashboardOnboarding
  locale="en"
  steps={setup.steps}                    // [{ id, title, text, action, minutes?, done?, icon? }]
  onStep={(step) => setup.run(step.id)}  // resolve when done; a rejection shows the step's error line
  onUndo={(step) => setup.reopen(step.id)}
  onFinish={() => router.push('/dashboard')}
  onDismiss={() => setup.hide()}
  loading={setup.loading}
/>

Props

PropTypeDefaultWhat it does
locale'en' | 'zh-CN' | 'es' | 'ja''en'Language of the built-in text and the sample steps.
stepsArray<{ id, title, text, action, minutes?, done?, icon? }>sample setupIn order. text is the one-line how-to, action the button that does it, minutes adds to the time left, icon is a kit icon name.
onStep(step) => Promise | void—A step’s action was pressed. The button waits while the promise runs; a rejection keeps the step open with an error line.
onUndo(step) => void—A done step was marked as not done.
onFinish / onDismiss() => void—The finished state’s main button, and Hide checklist. Without onDismiss the checklist folds into a bar that can show it again.
dismissedbooleanfalseStarts folded into the slim bar.
loadingbooleanfalseShows the skeleton of the checklist.
labelsobject—Replaces any built-in text (keys as in copy.js).
classNamestring—Extra class on the root element.

Add it to your project

Pro includes the full source of this block. Copy its prompt to install it with your coding agent.

DashboardOnboarding.jsxdashboard-onboarding.csscopy.jskit.jsxkit.cssui/base-button/ui/success-check/ui/progress-ring/ui/skeleton-shimmer/tokens.cssREADME.md

The block, its stylesheet and text, the shared kit, the components it uses and tokens.css install together into one folder.