Skip to content
Twentyfirst UIHalo

Sync Status

Connectors · SyncStatus, Panel

View as Markdown

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, paused and never; compact keeps one line.
  • Pass now so 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

PropTypeNotes
state"synced" | "syncing" | "error" | "paused" | "never"Required
last?Date | string | numberThe last successful sync.
next?Date | string | numberThe 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?ReactNodeWhy the sync failed.
onSync?() => void
compact?booleanOne line: state and time only.
className?stringExtra class on the root element.
style?CSSPropertiesInline style on the root element.

Panel

PropTypeNotes
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?stringExtra class on the root element.
style?CSSPropertiesInline style on the root element.