Component packs › Hoist › Paste Image
Paste, drop or pick an image and it feeds out of a chrome slot like a print, with its real size and pixels.
Paste Image is a paste 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: clipboard paste, copy back to clipboard, print feed.
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 |
|---|---|---|---|
width | number | 360 | Width in px. Default 360. |
dark | boolean | ||
onImage | (file: File | null) => void | ||
autoplay | number | false | Showcase mode: feeds a sample picture every N ms while visible. |
readonly file: File | nullclear(): voiddestroy(): voidimport PasteImage from './PasteImage';
<PasteImage />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: File upload.