Onboarding wizardPro
Welcome flow for role, goals, team size and invites, ending with confetti.
pnpm dlx shadcn@latest add @lode/onboarding-wizardWhat's inside
- Role and goals
- Team size
- Bulk invites
- Confetti finish
When to use
- Right after sign-up, to personalize the product.
When not to use
- More than five questions: people drop off.
Installation
pnpm dlx shadcn@latest add @lode/onboarding-wizardLands in components/blocks/onboarding-wizard.tsx with sample data you replace with your own. Pro installs use an API key: see CLI and API keys.
The CLI also installs motion, lucide-react and every Lode component it's built from.
Usage
Import it from @/components/blocks/onboarding-wizard after installing. It ships with sample data, so it renders straight away; swap in your own data when you're ready.
import { OnboardingWizard } from "@/components/blocks/onboarding-wizard";
export default function Page() {
return (
<main className="mx-auto max-w-6xl p-6">
<OnboardingWizard />
</main>
);
}API reference
OnboardingWizard
A welcome flow for role, goals, team size and invites, with a progress bar, skip and a confetti finish. Also the default export. No props: sample data sits at the top of the file, ready to swap for your own.
No props.
Keyboard interactions
| Keys | Action |
|---|---|
| Tab | Move through choices |
| EnterorSpace | Pick |
| Enteror, | Add an invite email |
Accessibility
- Questions are fieldsets with legends; single choices are radio groups and multi choices are toggle buttons.
- Progress is a labelled progressbar.
Motion
- Steps slide; choices pop in with a stagger; confetti bursts from the finish button (skipped under reduced motion).
Responsive behavior
- Choices are 2 columns on phones, 3 on wider screens.
Performance
- Confetti draws on a temporary canvas that removes itself.
Notes for AI
- Save answers to the user profile to tailor templates and docs.
This page as Markdown, for assistants and coding agents:
/blocks/onboarding-wizard/markdownThe full library index for assistants is at /llms.txt.
Related
Lode·229 doc pages·llms.txt