Kinetik UI

Onboarding

.md

A paged welcome with animated illustration panels, a progress line that follows the swipe and word-by-word titles.

v1.0.0Live on webreact-native-reanimatedreact-native-safe-area-contextreact-native-worklets
Component preview

Installation

Kinetik CLI
npx kinetik-ui add onboarding

The CLI copies the source and installs native dependencies with npx expo install, so versions match your Expo SDK. With shadcn: npx shadcn@latest add https://kinetik-ui.dev/r/onboarding.json

Install manually

  1. Install dependencies
    npx expo install react-native-reanimated react-native-safe-area-context react-native-worklets
  2. Copy the source files
    • components/kinetik/screens/onboarding.tsx
    View source files

Usage

import { Onboarding } from '@/components/kinetik/screens/onboarding';

<Onboarding
  slides={[
    { key: 'track', tag: 'Welcome', title: 'Every habit in one calm place' },
    { key: 'setup', tag: 'Easy setup', title: 'Set up your account in under a minute' },
    {
      key: 'remind',
      tag: 'Stay on top',
      title: 'A nudge only when it really matters',
      visual: (active) => <MyIllustration playing={active} />,
    },
  ]}
  onFinish={() => router.replace('/sign-up')}
  onSkip={() => router.replace('/home')}
/>;

Slides without a visual use the built-in illustrations (a fanned card stack, a self-ticking checklist and a notification). Pass your own visual to show product shots or animations; it receives active so it can play only while its slide is on screen.

When to use

  • The first launch, to set expectations in two to four short slides.
  • Before sign-up, when people should know what they get for an account.

When not to use

  • To explain controls the app could make obvious: put hints where the controls are.
  • More than four slides. People skip long tours; keep the rest for later moments.

Notes

  • The button advances the pager; on the last slide it becomes Get started and calls onFinish. Swiping works too.
  • Leave out onSkip to hide Maybe later, for flows that must be completed.

Props

OnboardingProps

PropTypeDefaultDescription
onFinishrequired() => void—Called by the button on the last slide.
onSkip() => void—Called by the link under the button. Hidden when omitted.
slidesreadonly OnboardingSlide[]DEFAULT_SLIDES
nextLabelstring'Continue'Button label before the last slide. Defaults to "Continue".
finishLabelstring'Get started'Button label on the last slide. Defaults to "Get started".
skipLabelstring'Maybe later'Link label. Defaults to "Maybe later".

Performance and accessibility

Performance

Budget
Only the current slide's illustration animates (UI-thread springs and loops); the others rest. The progress line is a scroll-driven worklet.
Measured

Pixel 9 emulator, API 35, release build · interaction median 1.06× the system Settings app on the same emulator (indicative only) · keeps drawing at rest · 156 MB app memory. Animating at rest: the current slide’s illustration keeps drifting or looping while it is on screen.

Real-device measurement pending.

Accessibility

Reduced motion
Illustrations show their finished state without looping, and titles appear without rising (Word Cascade). Paging is user-driven, so it stays.
Screen readers
Only the current slide is exposed. The progress line reads "Step 2 of 3". The button is named Continue, then Get started; Maybe later is a separate button.
Touch target
The main button is 56 pt tall; Maybe later is at least 44 pt.

Source files

components/kinetik/screens/onboarding.tsx is in the Code tab of the preview above.