Hextech UI

Menu

Live example

Menu

Installation

Terminal
npx shadcn@latest add https://hextech-ui.vercel.app/r/menu.json

API reference

These are the main Menu options. See the exported TypeScript types for inherited native or primitive props.

PropTypeDefault
open / defaultOpenbooleanfalse
side / alignpositioning optionsbottom / start
disabledboolean (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.