@objectifthunes/whiteboard
EXAMPLE SCREENS

Onboarding

A five-step wizard. Step one blocks Continue until the workspace has a name, and the stepper only lets you click back.


PREVIEW
Setting up My Whiteboard
Step 1 of 520%
  1. WorkspaceName and region
  2. How you billShapes your defaults
  3. BrandingOptional
  4. Invite teamOptional
  5. Review
Name your workspace

This appears on every invoice you send.

Cannot be changed after your first invoice.

Continue is blocked on step 1 until the workspace has a name. Forward navigation stays with this form, which is the only thing that knows whether the step validates — the Stepper only lets you click back to finished steps.

SOURCE
import {
  Stepper, ProgressBar, ChoiceGroup, RadioGroup, Combobox, TagInput, FileDrop, Field,
} from '@objectifthunes/whiteboard'

const index = STEPS.findIndex(s => s.id === step)

<ProgressBar value={((index + 1) / STEPS.length) * 100} label={`Step ${index + 1} of ${STEPS.length}`} showValue />

{/* onStepClick only ever moves you back — finished steps are the only clickable ones. */}
<Stepper steps={STEPS} current={step} onStepClick={setStep} />

// Forward navigation belongs to the form, which owns the validation.
const next = () => {
  setTouched(true)
  if (!name.trim()) return          // blocked on step one
  setStep(STEPS[index + 1].id)
}
NOTES

Stepper plus ProgressBar across five steps. Continue is blocked on step one until the workspace has a name: forward navigation belongs to the form, which is the only thing that knows whether the step validates. The stepper only lets you clickback.

ChoiceGroup for the cards, RadioGroup for the terms, Combobox for region and currency, TagInput for invites and FileDrop for the logo. The review step reads back everything you entered.