Skip to content

Progress tracker - Web Component โ€‹

The ProgressTracker component can be used imported from:

Playground โ€‹

Parameters โ€‹

The Web component uses the <z-progress-tracker> 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:

NameTypeDescriptionSlotA11y
stepsobject[]Steps of the progress tracker
configstringConfiguration of the progress tracker
modelnumberCurrent step. Between 1 and 10
namestringName of the input

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

Parameters use โ€‹

steps โ€‹

The steps attribute recieve an array of objects with the following properties:

  • text: Small description of the step.
  • icon: Icon to be displayed on the step.
  • disabled: explicitly disables the state.

Both properties are optional.


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

config โ€‹

The config parameter is used to define the orientation and the size of the component.

direction โ€‹

The first modifier defines de orientation of the component. The default value is horizontal. Possible values are: vertical or horizontal.

small โ€‹

The second modifier defines the size of the component. By adding small value after the orientation, the component will be smaller.

model โ€‹

The value parameter is used to set the current step of the progress tracker.

name โ€‹

The name parameter is used to set the name of the component.

Browser support โ€‹

Detected engine: ย 

  • Chromium

  • Webkit

  • Gecko

HTML Examples โ€‹

CodeSandbox example โ€‹