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
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.