Patterns · Pages
Onboarding
OnboardingPageOnboardingScreen
A setup wizard: one question per step, "Step n of N", Back, Continue and Skip, a check before each move forward and a completion view. Focus moves to each step heading.
Web
Live, at a real viewport width. Switch to Phone to see the responsive layout.
Usage
import { OnboardingPage } from '@nexub/patterns';
<OnboardingPage
steps={[
{ id: 'use', title: 'What will you use it for?', content: <RadioCardGroup>…</RadioCardGroup>, validate: () => Boolean(use) || 'Pick one to continue' },
{ id: 'alerts', title: 'Choose your alerts', optional: true, content: <AlertOptions /> },
]}
onComplete={saveSetup}
completeDescription="Your workspace is ready."
completeActions={<Button onClick={goHome}>Go to dashboard</Button>}
/>On iOS & Android: OnboardingScreen
@nexub/react-native/patternsAlpha
import { OnboardingScreen } from '@nexub/react-native/patterns';
<OnboardingScreen slides={slides} onGetStarted={start} onSignIn={signIn} />Web vs mobile
Same tokens and prop names. Where the platforms differ:
| Web | iOS & Android | |
|---|---|---|
| Purpose | A form wizard: steps with content, validation and a completion view. | Intro slides, not a form wizard: swipeable value slides with Get started and Sign in. |
| Progress | A progress bar, or the named steps when there is room. | Page dots under the slides. |
Interactive preview of @nexub/react-native rendered for the web. Native chrome (switches, pickers, Liquid Glass) looks like the platform on a device.
On device

iPhone (iOS simulator)

Pixel (Android emulator)
Screenshots from the latest CI run of the showcase app; the live frame renders the same code for the web.
OnboardingScreen props
| Prop | Type | Default | Description |
|---|---|---|---|
| slidesrequired | OnboardingSlide[] | — | — |
| onGetStartedrequired | () => void | — | — |
| onSignIn | () => void | — | — |