Component packs › Hoist › Upload Reorder

Upload Reorder

Drag photos along the rail; the others roll aside to make room and every print swings with its own push.

Upload Reorder is a reorder 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: trolleys on springs, swing from acceleration, arrow-key reorder.

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 Reorder props

PropTypeDefaultDescription
itemsUploadReorderItem[]
widthnumber380Width in px. Default 380.
darkboolean
onChange(items: UploadReorderItem[]) => void
autoplaynumber | falseShowcase mode: moves a photo every N ms while visible.

Methods on the ref

Use it in React

import UploadReorder from './UploadReorder';

<UploadReorder />

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

More in Hoist

Good for: File upload.