Multi Step Loader

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

Install using CLI

npm
pnpm
bun
yarn
npx shadcn-vue@latest add "https://inspira-ui.com/r/multi-step-loader.json"

Install Manually

Copy and paste the following code

MultiStepLoader.vue

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.

Credits