Component packs › Hoist › Sync Status
A small hoist shows the state: empty hook when synced, sheets lifted while syncing, a waiting sheet offline, a swinging one on error.
Sync Status is a status from Hoist, a component pack with 6 file upload components: File upload components where every file is a paper sheet lifted on a steel cable. Price: $2 for the whole pack.
Built with: four live states, counting lifts, polite live region.
Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.
| Prop | Type | Default | Description |
|---|---|---|---|
state | SyncState | ||
total | number | Files in this sync. | |
file | string | Name of the file that failed. | |
last | string | When the last sync finished, e.g. "14:32". | |
width | number | 340 | Width in px. Default 340. |
dark | boolean | ||
onRetry | () => void | ||
autoplay | number | false | Showcase mode: steps through the states every N ms while visible. |
state: SyncStatedestroy(): voidimport SyncStatus from './SyncStatus';
<SyncStatus />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: File upload.