Async workflows

Sync

SyncStateIcon

Shows whether data is idle, syncing, synced, or failed.

States

4 total

Sync

Ready to sync.

Sync

"idle"

Ready to sync.

Syncing

"syncing"animated

Syncing is in progress.

Synced

"synced"

Synced successfully.

Sync failed

"error"

The sync action failed.

Implementation

Pass your current state.

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.

Source
Lucide
License
ISC
States
idle · syncing · synced · error
example.tsx
import { SyncStateIcon } from "@stateglyph/react";
<SyncStateIcon state="idle" decorative />