Component packs › Hoist › 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.
| Prop | Type | Default | Description |
|---|---|---|---|
items | UploadReorderItem[] | ||
width | number | 380 | Width in px. Default 380. |
dark | boolean | ||
onChange | (items: UploadReorderItem[]) => void | ||
autoplay | number | false | Showcase mode: moves a photo every N ms while visible. |
readonly items: UploadReorderItem[]move(from: number, to: number): voiddestroy(): voidimport UploadReorder from './UploadReorder';
<UploadReorder />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: File upload.