Loading...
Loading...
> Track user setup progress with expandable tasks, progress bar, and celebration animation on completion.
1import { OnboardingChecklist } from "@/components/ui/onboarding-checklist"
2/4 tasks completed • 50%
1<OnboardingChecklist2 tasks={tasks}3 onTaskToggle={(taskId, completed) => {4 // Update task completion5 }}6 onDismiss={() => {7 // Handle dismiss8 }}9 showCelebration={true}10/>
| Prop | Type | Default | Description |
|---|---|---|---|
| className | string | undefined | Additional CSS classes for the container. |
| tasks | OnboardingTask[] | required | Array of onboarding tasks to display. |
| onTaskToggle | (taskId: string, completed: boolean) => void | Promise<void> | undefined | Callback when a task is checked/unchecked. |
| onDismiss | () => void | undefined | Callback when the checklist is dismissed. |
| showCelebration | boolean | true | Show confetti animation when all tasks are complete. |