React 3D Mockups
2026Live 3D device mockups for React. Real DOM on the glass.
React 3D Mockups is an open-source library of 3D device and object mockups for React, built on three.js. Whatever goes on a screen, a component, a video or an iframe, stays live DOM and stays sharp at any angle.
All 58 models, from phones and foldables to a billboard and a semi trailer, are generated in code at runtime, with no 3D files to host. The package is on npm under the MIT license.
Live screens
Screen content is real DOM, placed on the glass with CSS 3D transforms under a transparent WebGL canvas that masks it pixel for pixel. Text stays crisp, and state, video and iframes keep running.
Lineup
There are 33 devices and 25 objects. Each screen defaults to the real device’s logical resolution, so breakpoints match the hardware.
Prop explorer
Every model has a page with a live prop explorer, and its demo.tsx rewrites itself to the props being passed.
Taking input
Screens are display-only by default. The experimentalScreenInput prop lifts each screen above the canvas and clips it every frame to the pixels no hardware covers.
How it is built
Ports and speaker holes are cut with CSG at runtime, and a frame is drawn only when something changes. A renderer-agnostic core holds the specs; the React layer renders them with react-three-fiber.
Example scenes
Twelve scenes for fictional brands, most with Tabbied patterns, show the library at work.
Shipping
Since 0.1.1, releases go to npm from GitHub Actions with Trusted Publishing and signed SLSA provenance.
