Interface: WizardProps
Defined in: types.ts:41
Props for the Wizard component.
Properties
allowStepClick?
optionalallowStepClick?:boolean
Defined in: types.ts:76
Allow clicking on completed steps to navigate back. Defaults to true.
initialStep?
optionalinitialStep?:number
Defined in: types.ts:71
The initially active step index. Defaults to 0.
labels?
optionallabels?:Partial<WizardLabels>
Defined in: types.ts:80
Optional custom labels for the navigation buttons.
layout?
optionallayout?:WizardLayout
Defined in: types.ts:49
Position of the step list. Defaults to 'top'.
onCancel?
optionalonCancel?: () =>void
Defined in: types.ts:63
Called when the user clicks "Cancel". If not provided, the Cancel button is not rendered.
Returns
void
onComplete?
optionalonComplete?: () =>void
Defined in: types.ts:58
Called when the wizard completes (user clicks "Finish" on the last step).
Returns
void
onStepChange?
optionalonStepChange?: (params) =>void
Defined in: types.ts:67
Called whenever the active step changes.
Parameters
| Parameter | Type |
|---|---|
params | { stepIndex: number; } |
params.stepIndex | number |
Returns
void
steps
steps:
WizardStep[]
Defined in: types.ts:45
Array of steps to display in the wizard.
variant?
optionalvariant?:WizardVariant
Defined in: types.ts:54
Visual variant for the wizard shell, step accents, and primary action.
Default
'spotlight-accent'