Skip to content
caliper ui docs

Pro

Sync status

Whether the work on screen is safe, in one pill that changes in place: saving, saved, offline with changes waiting, failed with a retry, or edited elsewhere.

Pro
pnpm dlx shadcn@latest add @caliper/sync-status

Q3 board pack

Draft for the 4 November board meeting

Priya Nair is editingSaved just now
Installs components/ui/sync-status.tsxDepends on lucide-reactMotion shared motion tokens

When to use

Use it for

  • Editors, forms that save as you type, offline-capable apps.
  • Anywhere people wonder whether a change was kept.

Skip it when

  • Explicit save buttons; the button's own feedback is enough.
  • Background jobs; use job runs or a toast.

Installation

terminal
pnpm dlx shadcn@latest add @caliper/sync-status

Adds its 6 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. It is built from savedAgo and SyncStatus.

example.tsx
import { savedAgo, SyncStatus } from "@/components/ui/sync-status"

The worked example comes with Pro

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

savedAgo

component

No props of its own; it accepts the native props of its root element.

SyncStatus

component
PropTypeDefaultDescription
state *SyncState—
savedAtDate—
pendingnumber0Changes waiting to upload while offline.
onRetry(() => void)—
onResolve(() => void)—
classNamestring—

Accessibility

It exposes status semantics. Changes that matter are announced through a live region.

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

Motion

Transitions use the shared duration and easing tokens. Under prefers-reduced-motion those tokens collapse to instant and travel distances go to zero, so state changes still happen without movement.

All Status examples