Onboarding wizard
Three-step onboarding card (profile, terms, workspace) with a spring-filled stepper, direction-aware sliding panels, a live slug preview and a confetti success state.
Installation
Installation is available on the Startup and Business plans. Your personal install command appears here once you have access.
Usage
Import it, pass your props, and make it part of your product.
import { OnboardingWizard } from '@/components/component-kit/items/block-onboarding-wizard';
export function Example() { return <OnboardingWizard onComplete={(data) => console.log(data)} />;}Props
| Prop | Type | Default | Description |
|---|---|---|---|
avatars | { src: string; alt: string }[] | 5 Lorelei avatars from DiceBear | Avatars to pick from; colored initials show while one loads or if it fails. |
steps | [string, string, string] | ["Profile", "Terms", "Workspace"] | Labels for the three steps in the stepper. |
defaultName | string | "Ada Lovelace" | Initial value of the full-name field; also drives the avatar initials. |
onComplete | (data: OnboardingData) => void | undefined | Called when "Create workspace" is pressed with { avatar, fullName, acceptedTerms, workspaceName, slug }. |
autoPlay | boolean | false | Loops through the three steps every 1.6s after hydration, not under reduced motion; for inert previews. |
compact | boolean | false | Tighter padding, no helper text and no footer buttons, for small cards. |