Component packs › Hoist › Paste Image

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.

Paste Image props

PropTypeDefaultDescription
widthnumber360Width in px. Default 360.
darkboolean
onImage(file: File | null) => void
autoplaynumber | falseShowcase mode: feeds a sample picture every N ms while visible.

Methods on the ref

Use it in React

import PasteImage from './PasteImage';

<PasteImage />

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

More in Hoist

Good for: File upload.