Modal

Opens with a 3D tilt. Focus is trapped, Esc closes it, and focus returns to the button.

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

Modal3D props

PropTypeDefaultDescription
openbooleanWhether the modal is visible.
onClose() => voidCalled when the user asks to close the modal.
titlestringHeading of the modal. Also names it for screen readers.
descriptionstringShort text shown under the title.
childrenReactNodeContent shown in the body of the modal.
footerReactNodeButtons row shown under the content.
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