Skip to content
caliper ui pro docs

Step loader

What a long operation is doing: done steps tick off, the current one turns with its detail, the line fills, and a failure says where and why.

Pro
  1. Connect to the bank, in progress
  2. Fetch 12 months of transactions, waiting
  3. Match payments to invoices, waiting
  4. Apply your rules, waiting
  5. Write the summary, waiting

Step 1 of 5: Connect to the bank.

When to use

  • Imports, migrations, provisioning and first syncs.
  • Any wait longer than a few seconds that has stages.

When not to use

  • Quick actions; a button spinner is enough.

Installation

terminal
pnpm dlx shadcn@latest add @caliper/step-loader

Adds its 2 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.

API reference

StepLoader

5 props
PropTypeDefaultDescription
steps *readonly LoaderStep[]—
current *number—Index of the step in progress; steps before it are done.
status"error" | "done" | "running""running"
errorstring—Why the current step failed.
classNamestring—

Keyboard

  • No custom key handling; Tab and the native activation keys do the work.

Accessibility

It exposes status semantics, with aria-hidden kept in step with state. Changes that matter are announced through a live region.

Notes for AI

Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.

/docs/components/step-loader.md

The index of every part is at /llms.txt.

More in Changing values