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.
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.mdThe index of every part is at /llms.txt.
More in Status
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.