Skip to main content

Props

FormWizard Component

PropDescriptionSample
titleWizard title (string or React node).v1 basic
subtitleOptional wizard subtitle text.v1 basic
shapeTab shape (circle or square).v1 square shape
colorMain accent color for tabs and progress visuals.v1 custom colors
childrenLegacy/children API content using FormWizard.TabContent.v1 basic
schemaSchema API definition (FormWizardSchema). If both schema and children are passed, schema is used.v1 schema api
dataControlled wizard data object for schema mode.v1 conditional steps
onDataChangeCallback fired when wizard data changes in schema mode.v1 schema api
nextButtonTextText label for next button.v1 progress bar
nextButtonTemplateCustom renderer for next button. Receives a next callback.v1 custom button templates
backButtonTextText label for back button.v1 progress bar
backButtonTemplateCustom renderer for back button. Receives a back callback.v1 custom button templates
finishButtonTextText label for finish button.v1 progress bar
finishButtonTemplateCustom renderer for finish button. Receives a finish callback.v1 custom button templates
stepSizeStep size: xs, sm, md, lg.v1 step sizes
layoutLayout direction: horizontal or vertical.v1 vertical layout
startIndexInitial active step index.legacy step index
disableBackOnClickStepPrevents clicking ahead/back by tab selection when enabled.v1 complete showcase
showProgressBarToggle progress bar between completed steps. Default: true.v1 progress bar
inlineStepCompact inline step layout. Default: false.v1 inline steps
darkModeEnables dark mode visuals. Default: false.v1 dark mode
customDarkModeColorCustom dark mode color tokens object.v1 dark mode
removeBackgroundTabRemoves default tab background fill.legacy remove tab bg
removeBackgroundTabTransparentColorBackground color to apply under transparent tab icons.legacy remove tab bg
onCompleteCalled on finish. In v1, can receive optional wizard data payload: (data?: WizardData) => void.v1 schema api
onTabChangeCalled when active step changes with { prevIndex, nextIndex, stepId? }.v1 basic

FormWizard.TabContent Component

The FormWizard.TabContent component is used to define each tab's content and accepts the following props:

PropDescriptionSample
idOptional stable step id for imperative navigation and accessibility mapping.v1 complete showcase
titleTab title text.v1 basic
iconTab icon (string class name or React node).v1 custom react icons
conditionOptional condition function to decide if a step is visible.v1 conditional steps
validateOptional validation function returning true or an error message.v1 validation
isValidLegacy boolean validity flag for tab content.v1 validation
validationErrorFunction called when invalid step blocks navigation.v1 validation
showErrorOnTabShows visual error style on the tab when invalid.v1 validation
showErrorOnTabColorError color for tab icon/title/progress border.v1 validation

v1 Schema Types

Schema mode introduces these exported helpers:

  • WizardData
  • WizardConditionContext
  • WizardValidationContext
  • WizardCondition
  • WizardValidation
  • WizardStepSchema
  • FormWizardSchema

For callback details, see Events. For imperative methods, see References.