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.
| Prop | Type | Default | Description |
|---|---|---|---|
| children | ReactNode | What is behind the doors. | |
| width | number | 280 | Width of the doorway in px. |
| height | number | 340 | Height of the doorway in px. |
| open | boolean | Whether the doors are open. Leave out to let hover, focus and click control it. | |
| onOpenChange | (open: boolean) => void | Called with true or false when the doors open or close. | |
| className | string | Extra classes added to the outer element. |