Component packs › Jigsaw › Piece Upload

Piece Upload

Every dropped file becomes a printed piece that turns, flies to the next free gap and snaps into the tray.

Piece Upload is a file upload from Jigsaw, a component pack with 6 puzzle controls: Upload, progress, tabs and forms made of jigsaw pieces that cut, drop and lock together. Price: $2 for the whole pack.

Built with: real jigsaw cuts per gap, spring snap, drop where you let go.

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.

Piece Upload props

PropTypeDefaultDescription
colsnumber3 × 2Gaps in the tray (columns × rows). Default 3 × 2.
rowsnumber
acceptstringPassed to the file input, e.g. "image/*,.pdf".
darkbooleanfollows the pageForce the dark (true) or light (false) look. Default: follows the page.
onFiles(files: File[]) => void
autoplaynumber | falseShowcase mode: adds a sample file every N ms while visible.

Methods on the ref

Use it in React

import PieceUpload from './PieceUpload';

<PieceUpload />

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

More in Jigsaw

Good for: File upload.