Skip to content
nexubDesign System
v11.9.0

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

TSX
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>}
/>