Onboarding checklist
Application-owned setup tasks with drawn checks and a completion summary.
npx @swipeui/cli add onboarding-checklistWhen to use it
- Getting-started cards with setup tasks, such as Add a photo, Invite a friend and Turn on notifications.
- Showing setup progress, like "2 of 4 complete".
- Tasks that open the screen where people finish them.
When not to use it
- A step-by-step flow. Use Stepper.
- A personal to-do list. Use Task card.
- One-off tips. Use Alert or Tooltip.
Installation
Run this from your app's root. If SwipeUI isn't set up yet, run npx @swipeui/cli init first; it sets up Uniwind, the theme tokens and the cn helper.
npx @swipeui/cli add onboarding-checklist- Adds
components/swipeui/ui/onboarding-checklist.tsxand 16 shared helpers. - Installs react-native-reanimated, react-native-worklets, uniwind, clsx, tailwind-merge, expo-haptics, class-variance-authority, react-native-svg, react-native-gesture-handler. In Expo apps it uses
npx expo installso versions match your SDK.
Usage
import { OnboardingChecklist } from '@/components/swipeui/ui/onboarding-checklist';
<OnboardingChecklist tasks={tasks} />;Examples
Use the variant and appearance controls in the live specimen to compare the documented states. The application owns validation, operation results and persistence.
API reference
OnboardingChecklistProps
| Prop | Type | Default | Description |
|---|---|---|---|
appearance? | | | Card or transparent surface. |
showProgress? | | | Completion summary visibility. |
title? | | | Setup heading. |
tasks | | — | Tasks; completion belongs to the application. |
onTaskChange? | | — | Optional manual completion handler; otherwise a task opens its onPress action. |
motion? | | — | Shared toggle/number/press feel. |
haptics? | | | Action haptics. |
className? | | — | Root classes. |
style? | | — | Native layout escape hatch. |
testID? | | — | Root ID. |
Native view/input props not listed here pass through where the exported TypeScript type allows them.
Composition and behavior
- title ("Get started" by default) above a Progress bar and count.
- tasks each have an id, label, description, completed, disabled and optional onPress.
- onTaskChange enables ticking tasks by hand.
Feedback lineup settings
| Prop | Does / default |
|---|---|
id | Stable task identifier. |
label | Task name. |
description | Optional task guidance. |
completed | Application-owned completion state. |
onPress | Optional task route or action. |
disabled | Prevent invoking the task. |
appearance | Card or transparent surface. @default 'elevated' |
showProgress | Completion summary visibility. @default true |
title | Setup heading. @default 'Get started' |
tasks | Tasks; completion belongs to the application. |
onTaskChange | Optional manual completion handler; otherwise a task opens its onPress action. |
motion | Shared toggle/number/press feel. |
className | Root classes. |
style | Native layout escape hatch. |
testID | Root ID. |
Behaviour
A checklist tracks setup tasks (profile, teammates, first collection). Tasks may be completed in different sessions. Page dots show a viewed page; they do not track completed work.
Action haptics can be disabled independently with haptics={false} (default true).
Behavior and gestures
- Tap a task to open where it's done (its onPress), or to tick it manually if you pass onTaskChange.
- Completed tasks show a drawn check and strike-through text.
- A progress bar and count update as tasks complete.
Accessibility
- Progress is announced as "2 of 4 setup steps complete".
- Each task is a checkbox; its description is read as a hint.
- Tasks that can't be ticked or opened are disabled.
Motion
- Uses the
toggle,numberandpressmotion roles, so it follows your app's feel. Passmotionto tune this one instance. - Checks draw with the toggle role; the bar fills with the number role.
- Reduce Motion makes both instant.
Performance
- Completion state belongs to your app; the list just reflects it.
Notes for AI
- Give each task an id, label and either onPress or rely on onTaskChange.
Compatibility
| Runs on | Supported |
|---|---|
| Expo SDK 57 | Yes |
| Expo SDK 58 | Yes |
| React Native CLI (with Expo modules) | Yes |
| Expo Go | Yes |
| iOS | Yes |
| Android | Yes |
This table describes API support and static bundle checks. Native runtime, device accessibility and bare Uniwind compatibility remain pending.