For Tailwind CSS v3 docs, click here.

Multi Step Loader

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

通过 CLI 安装

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

手动安装

复制并粘贴以下代码:

MultiStepLoader.vue

API

Prop 名称类型默认值描述
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 Type描述
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.

感谢