Multi Step Loader

A step loader for screens that works with async conditions too.

API

Prop NameTypeDefaultDescription
loadingbooleanfalseControls the visibility of the loader. When true, the loader is displayed.
stepsStep[][]Array of step objects defining the loading sequence.
defaultDurationnumber1500The duration of each step in milliseconds.
preventClosebooleanfalseIf true, the close button will not be shown.
Event NamePayload TypeDescription
state-changenumberEmitted when the current step changes, providing the new step index.
completevoidEmitted when all steps have been completed.
closevoidEmitted when the loader is closed by button.

Component Code

You can copy and paste the following code to create these components:

MultiStepLoader.vue

Credits