A button that opens a floating menu that tilts in from the trigger. Follows the menu button pattern with full keyboard support and focus return.
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 |
|---|---|---|---|
| items | MenuItem[] | The items in the menu. | |
| onSelect | (id: string) => void | Called with the id of the chosen item. | |
| children | ReactNode | Content of the trigger button. | |
| align | "start" | "end" | "start" | Which edge of the trigger the menu lines up with. |
| aria-label | string | "Menu" | Accessible name of the menu. |
| className | string | Extra classes added to the trigger button. |