Skip to main content

BwWizard | bw-wizard

Overview

The wizard component is used for multi-step forms. You can have optional and required steps. It has methods to navigate between steps and a method to check if the current step can be skipped. The mode property can be set to make the wizard horizontal (default) or vertical.

Properties

PropertyAttributeDescriptionTypeDefault
initialStepinitial-stepInitial step of the wizardnumberundefined
mobilemobileHides labels and reduces spacing to make component more mobile friendly. Only applicable in horizontal mode.booleanfalse
modemodeDisplay mode: 'horizontal' (default) or 'vertical'."horizontal" | "vertical"'horizontal'
stepsstepsThe steps of the wizard.{ label: string; subLabel?: string; optional?: boolean; }[][]

Events

EventDescriptionType
finishEmitted when the wizard is finished.CustomEvent<void>
stepChangeEmitted when the current step changes.CustomEvent<number>

Methods

canSkip() => Promise<boolean>

Checks if the current step can be skipped.

Returns

Type: Promise<boolean>

next() => Promise<void>

Goes to the next step.

Returns

Type: Promise<void>

previous() => Promise<void>

Goes to the previous step.

Returns

Type: Promise<void>

reset() => Promise<void>

Resets the wizard.

Returns

Type: Promise<void>

skip() => Promise<void>

Skips the current step.

Returns

Type: Promise<void>


© 2025 United Systems & Software - All Rights Reserved.