Component packs › Jigsaw › 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.
| Prop | Type | Default | Description |
|---|---|---|---|
fields | MissingPieceField[] | Exactly four fields. | |
submitLabel | string | ||
dark | boolean | follows the page | Force the dark (true) or light (false) look. Default: follows the page. |
onSubmit | (values: Record<string, string>) => void | ||
autoplay | number | false | Showcase mode: fills in a field (or submits) every N ms while visible. |
readonly values: Record<stringsubmit(): booleanreset(): voiddestroy(): voidimport MissingPiece from './MissingPiece';
<MissingPiece />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: File upload.