Sync Status
Connectors · SyncStatus, Panel
When a connected service last synced, in words ("Synced 6 minutes ago"), when it syncs next, what the last sync brought ("1,204 emails") and why a sync failed, with "Sync now".
- States
synced,syncing,error,pausedandnever;compactkeeps one line. - Pass
nowso server and client render the same relative times (formatRelative).
Sync status
Synced 6 minutes agoNext in 54 minutes
- 1,204 emails
- 316 threads
- 88 attachments
Syncing…
Sync failed · Synced yesterday
N26 asks you to confirm access again every 180 days.
Sync paused
Not synced yet
Synced 2 minutes ago
Props
SyncStatus
| Prop | Type | Notes |
|---|---|---|
state | "synced" | "syncing" | "error" | "paused" | "never" | Required |
last? | Date | string | number | The last successful sync. |
next? | Date | string | number | The next planned sync. |
now? | Date | string | number | "Now" for the relative times; pass it so server and client render the same. |
counts? | { label: string; value: number }[] | What the last sync brought: `{ label: "emails", value: 1204 }`. |
error? | ReactNode | Why the sync failed. |
onSync? | () => void | |
compact? | boolean | One line: state and time only. |
className? | string | Extra class on the root element. |
style? | CSSProperties | Inline style on the root element. |
Panel
| Prop | Type | Notes |
|---|---|---|
side? | boolean | |
title? | string | |
subtitle? | string | |
action? | ReactNode | |
children? | ReactNode | |
surface? | Surface | `"glass"`: translucent glass over what is behind (maps, 3D, video, photos); `"solid"` opts out inside a glass `UIProvider`. |
className? | string | Extra class on the root element. |
style? | CSSProperties | Inline style on the root element. |