Doors

Two doors on real hinges. Hover, focus or click and they swing open on a room lit from within.

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

Doors3D props

PropTypeDefaultDescription
childrenReactNodeWhat is behind the doors.
widthnumber280Width of the doorway in px.
heightnumber340Height of the doorway in px.
openbooleanWhether the doors are open. Leave out to let hover, focus and click control it.
onOpenChange(open: boolean) => voidCalled with true or false when the doors open or close.
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