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.
pnpm dlx shadcn@latest add @caliper/sync-statusWhen 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
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.
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
API reference
savedAgo
component
No props of its own; it accepts the native props of its root element.
SyncStatus
component
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.
Related
- Live indicatorWhether a feed is live, in words and a dot. The dot sends out a soft ring only while live, blinks while reconnecting and rests otherwise, and gives one extra ring for each update you tell it about.
- ToastA short, dismissible message that confirms an action, with an optional undo.
- Result iconThe outcome of an operation as a mark that draws itself once: a check, a cross, an exclamation, or a turning arc only while pending.