Skip to content
caliper ui pro docs

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
Priya Nair is editingSaved just now

When to use

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

When not to use

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

API reference

savedAgo

0 props

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

SyncStatus

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

Keyboard

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

Accessibility

It exposes status semantics. 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/sync-status.md

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

More in Status