Popover

A button that opens a small floating panel for any content, such as a form or details. Escape and outside clicks close it, and focus moves in and back out.

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

Popover3D props

PropTypeDefaultDescription
triggerReactNodeContent of the trigger button.
childrenReactNodeContent of the floating panel.
openbooleanOpen state. Set it to control the component.
onOpenChange(open: boolean) => voidCalled when the popover wants to open or close.
align"start" | "center" | "end""start"Which edge of the trigger the panel lines up with.
abovebooleanShow the panel above the trigger instead of below.
aria-labelstring"Details"Accessible name of the panel.
classNamestringExtra classes added to the panel.

More components

Guides

Start

Cards

Scenes

Controls & text

Buttons

More cards

UI elements

Form controls

App components

Text & backgrounds

Showpieces

Blocks