Skip to content
caliper ui docs

Pro

Progress ring

Determinate progress in a ring that eases to each value, draws a check when done and a cross when it fails.

Pro
pnpm dlx shadcn@latest add @caliper/progress-ring

Uploading to Board · Q4

3 files · 17.4 MB to the Halden board room

  • board-pack.pdf12.4 MB · 35%
  • minutes-oct.docxStopped at 55% · connection lost
  • logo-pack.zip4.1 MB · uploaded
Installs components/ui/progress-ring.tsxDepends on lucide-reactMotion none in component source

When to use

Use it for

  • Uploads, exports and syncs with a known size.
  • Compact progress in a row or on an avatar.

Skip it when

  • Work with no known end; use a spinner.

Installation

terminal
pnpm dlx shadcn@latest add @caliper/progress-ring

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 { ProgressRing } from "@/components/ui/progress-ring"

The worked example comes with Pro

The 51-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

ProgressRing

component

Also accepts the native props of its root element and a ref.

PropTypeDefaultDescription
value *number—
maxnumber100
label *string—What is progressing, e.g. "Uploading report.pdf".
status"error" | "done" | "active""active"
sizenumber40Outer diameter in pixels.
thicknessnumber4
showValuebooleanfalseShows the percentage in the middle; needs a size of 40 or more.

Accessibility

It exposes progressbar semantics, with aria-label, aria-valuemin, aria-valuemax, aria-valuenow, aria-valuetext and aria-hidden kept in step with state.

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