Skip to content

Vertical Stepper - Web Component

The VerticalStepper component can be used imported from:

Playground

Parameters

...

Events

This component has events. Check the documentation about how to use the events.

NamePayloadDescription
changenumberReturns the new value of the "value" attribute
restartedvoidEmitted on value reset

Slots

This component has slots. Check the documentation about how to use the slots.

NameTagsDescription
headerspan

Parameters use

steps

The steps attribute is used to define the total number of steps in the stepper. If not provided, the default value is 10.

We can use <option> tags to define the values of steps

model

The model attribute is used to define the current step in the stepper. Make sure the value is between 1 and the total number of steps.

Attention!

If you hardcode this value, it will not be reactive and the selection won't change. Use a variable instead and, ideally, a closed loop.

The header attribute is used to define the header of the stepper.

config

You can use the config attribute to display the stepper as collapsed.

Flags

disabled

The disabled attribute is used to block the interaction with the stepper.

Methods

reset()

We can all the reset() method of the WebComponent in order to reset the value. This will clean the internal states and emit the nullable value with the change event, plus a restarted event:

In this example, the button triggers the method:

Value:  1

The reset is done to 1.

Browser support

Detected engine:  

  • Chromium

  • Webkit

  • Gecko

HTML Examples

CodeSandbox example