Laptop

A laptop whose lid opens as you scroll it into view. Put anything on the screen.

Install it the shadcn way: copy the source file into your project. It uses CSS 3D, Tailwind CSS v4 and Framer Motion, no WebGL.

Laptop3D props

PropTypeDefaultDescription
childrenReactNodeWhat the screen shows.
widthnumber560Width of the laptop in px.
openbooleanForce it open or closed. Leave undefined to open with scroll.
classNamestringExtra classes added to the outer element.

More components

Guides

Start

Cards

Scenes

Controls & text

Buttons

More cards

UI elements

Form controls

App components

Text & backgrounds

Showpieces

Blocks