Rebar UI

1.0

opinion

Wizard

A multi-step form: step progress, one step at a time, and Back, Next and Submit.

New projectNext stays disabled until the required fields are filled
  1. ProjectName and owner
  2. DatesWhen it ships
  3. BriefWhat it is
Two steps
  1. Team
  2. Details

In context

Invite the crewSetup inside a dialog-sized card
Set up crew interviewsTwelve calls, ending 21 Oct
  1. Who
  2. When

Props

PropTypeRequiredDefault
stepsWizardStep[]Yes—
submitLabelstring | undefinedNoSubmit
backLabelstring | undefinedNoBack
nextLabelstring | undefinedNoNext
onSubmit((values: Record<string, WizardValue>) => void) | undefinedNo—
bionicboolean | undefinedNo—
bionicOptionsBionicOptions | undefinedNo—

Shape

{ type: "wizard", steps: { label, description?, fields: FormField[] }[], submitLabel?, backLabel?, nextLabel? }. Next and Submit are really disabled, not just dimmed, until the current step's required fields are filled.

data-rebar-* attributes

Same as the core Wizard; see its Props.

Migrating to Ant Design

Not codemod-covered; compose AntD's Steps and Form.