Component packs › Jigsaw › Missing Piece

Missing Piece

Each valid field drops in as a piece; submit with gaps and the board knocks and names what is missing.

Missing Piece is a form 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: validation as gaps, knock feedback, fitted 2 by 2 board.

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.

Missing Piece props

PropTypeDefaultDescription
fieldsMissingPieceField[]Exactly four fields.
submitLabelstring
darkbooleanfollows the pageForce the dark (true) or light (false) look. Default: follows the page.
onSubmit(values: Record<string, string>) => void
autoplaynumber | falseShowcase mode: fills in a field (or submits) every N ms while visible.

Methods on the ref

Use it in React

import MissingPiece from './MissingPiece';

<MissingPiece />

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

More in Jigsaw

Good for: File upload.