Component packs › Hoist › Upload Queue

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.

Upload Queue props

PropTypeDefaultDescription
uploadZlUploadera stand-in that only animatesYour upload. Default: a stand-in that only animates.
acceptstringInput accept list, e.g. "image/*,.pdf".
parallelnumber3Uploads at the same time. Default 3.
widthnumber380Width in px. Default 380.
darkboolean
onDone(file: File | { name: string; size: number }) => void
onError(file: File | { name: string; size: number }, error: unknown) => void
autoplaynumber | falseShowcase mode: drops sample files in every N ms while visible.

Methods on the ref

Use it in React

import UploadQueue from './UploadQueue';

<UploadQueue />

The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.

More in Hoist

Good for: File upload.