Menu
Live example
Menu
Installation
npx shadcn@latest add https://hextech-ui.vercel.app/r/menu.jsonAPI reference
These are the main Menu options. See the exported TypeScript types for inherited native or primitive props.
| Prop | Type | Default |
|---|---|---|
open / defaultOpen | boolean | false |
side / align | positioning options | bottom / start |
disabled | boolean (item) | false |
Actions and submenus
Use menu items for actions and explicit links for navigation. Set open with onOpenChange only when the application owns visibility. Keep submenu triggers and selection indicators supplied by the component; Escape closes the menu and restores focus.