Sync
"idle"Ready to sync.
Async workflows
SyncStateIconShows whether data is idle, syncing, synced, or failed.
Ready to sync.
"idle"Ready to sync.
"syncing"animatedSyncing is in progress.
"synced"Synced successfully.
"error"The sync action failed.
Implementation
The component stays presentational. Your application remains in control of async work and business logic. The state prop is a TypeScript string literal union — pass an invalid state and you'll get a type error at build time.
import { SyncStateIcon } from "@stateglyph/react";
<SyncStateIcon state="idle" decorative />