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