Skip to content

Stepper - Web Component

Browser support

Detected engine:  

  • Chromium

  • Webkit

  • Gecko

Parameters

The Web component uses the <z-stepper> tag:

By default, all the parameters are optional or can be set in different, except for the ones marked as required

The parametrization of the component can be done with the following custom HTML params:

NameTypeDescriptionSlot
labelstringLabel for the stepper
configstringConfiguration for the stepper
stepsnumberNumber of steps of the stepper
valuenumberCurrent value of the stepper
disabledbooleanBlocks the stepper from being interacted with

The events emitted from the component are:

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

label

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

config

The config attribute is used to center the step counter and the label. By default, both the step counter and the label are aligned to the left. The only possible value is center.

steps

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

value

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

disabled

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

Playground

Customization

HTML Examples

StackBlitz example