Manta Developers
GitHub
Menu

@manta-eu/react/sync-status

Reference for @manta-eu/react/sync-status as it is on main.

Type Aliases

SyncState

SyncState = "idle" | "saving" | "saved" | "error"


SyncStatusProps

SyncStatusProps = object

Properties

className?

optional className?: string

errorLabel?

optional errorLabel?: string

idleLabel?

optional idleLabel?: ReactNode

onRetry?

optional onRetry?: () => void

Returns

void

savedFor?

optional savedFor?: number

Milliseconds.

savedLabel?

optional savedLabel?: string

savingLabel?

optional savingLabel?: string

state

state: SyncState

Functions

SyncStatus()

SyncStatus(props): Element

Parameters

props

SyncStatusProps

Returns

Element