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.
| Prop | Type | Default | Description |
|---|---|---|---|
| trigger | ReactNode | Content of the trigger button. | |
| children | ReactNode | Content of the floating panel. | |
| open | boolean | Open state. Set it to control the component. | |
| onOpenChange | (open: boolean) => void | Called when the popover wants to open or close. | |
| align | "start" | "center" | "end" | "start" | Which edge of the trigger the panel lines up with. |
| above | boolean | Show the panel above the trigger instead of below. | |
| aria-label | string | "Details" | Accessible name of the panel. |
| className | string | Extra classes added to the panel. |