All components

MacBook Mockup

Mockups

A MacBook whose lid tilts open as it scrolls into view, revealing whatever you pass as `children` on the screen. The screen UI is authored at a fixed 900px design width and uniformly scaled to fit — so it never reflows across breakpoints. Reduced-motion users get the lid already open.

Installation

Terminal
npx shadcn@latest add https://ui.saumyarex.xyz/r/macbook-mockup.json

Props

PropTypeDefaultDescription
childrenReact.ReactNodeThe screen UI. Author it at ~900px wide; the mockup scales it to fit.
classNamestringClasses for the outer wrapper (e.g. max-width).

Dependencies

motion