Skip to content

Vertical Stepper - Web Component

Browser support

Detected engine:  

  • Chromium

  • Webkit

  • Gecko

Parameters

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

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

NameTypeDescriptionSlot
headerstringHeader for the stepperheader
steps
(optional)
numberNumber of steps of the stepper
value
(optional)
numberCurrent value of the stepper
disabled
(optional)
booleanBlocks the stepper from being interacted with

The events emitted from the component are:

NamePayloadDescription
onchangenumberReturns the new value of the "value" attribute
onrestartedvoidEmitted on value reset

The available slots for the component are:

NameTagsDescription
headerspan

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

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

Imports
html
<link rel="stylesheet" href="/0.5.2/@zurich/web-components/styles.css" />
<script type="module" src="/0.5.2/@zurich/web-components/vertical-stepper.js"></script>
Code
html
<z-vertical-stepper steps="6" value="3"></z-vertical-stepper>
<z-vertical-stepper steps="6" value="3" label="Steps"></z-vertical-stepper>
<z-vertical-stepper steps="6" value="3" config="center"></z-vertical-stepper>
<z-vertical-stepper steps="6" value="3" label="Steps" config="center"></z-vertical-stepper>