Component packs › Hoist › Upload Queue
Each file is hooked off the tray and lifted on its cable as it uploads; failures are let go and drop back with a retry.
Upload Queue is an upload 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: real drop and picker, three parallel hoists, pendulum swing.
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 |
|---|---|---|---|
upload | ZlUploader | a stand-in that only animates | Your upload. Default: a stand-in that only animates. |
accept | string | Input accept list, e.g. "image/*,.pdf". | |
parallel | number | 3 | Uploads at the same time. Default 3. |
width | number | 380 | Width in px. Default 380. |
dark | boolean | ||
onDone | (file: File | { name: string; size: number }) => void | ||
onError | (file: File | { name: string; size: number }, error: unknown) => void | ||
autoplay | number | false | Showcase mode: drops sample files in every N ms while visible. |
add(files: (File | { name: string; size: number; type?: string })[]): voiddestroy(): voidimport UploadQueue from './UploadQueue';
<UploadQueue />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: File upload.