Skip to content
caliper ui docs

Pro

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
pnpm dlx shadcn@latest add @caliper/step-loader

Import from Northwind Bank

Current account ending 4410 · last 12 months

  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.

Installs components/ui/step-loader.tsxDepends on lucide-reactMotion none in component source

When to use

Use it for

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

Skip it when

  • 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.

Usage

Import it from your copy of the source. The example behind the preview comes with the source.

example.tsx
import { StepLoader } from "@/components/ui/step-loader"

The worked example comes with Pro

The 54-line example behind the preview opens here, ready to copy.

  • 626 Pro parts, blocks and page templates, all with source
  • $149 once, with lifetime updates. No renewal
  • A full refund within 14 days if it is not for you
Checking your licence…

API reference

StepLoader

component
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—

Accessibility

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

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

Motion

It declares no animation in its component source. Any transition comes from its stylesheet, which uses the duration tokens that collapse to instant under prefers-reduced-motion.

All Changing values examples