--- generate_toc: true --- import { ComponentExample } from "@/components/ComponentExample" import { ComponentReference } from "@/components/ComponentReference" import { getOsShortcut, Kbd } from "docs-ui" export const osShortcut = getOsShortcut() export const metadata = { title: `Dropdown Menu`, } # {metadata.title} A component for rendering dropdown menus that display a set of actions or options to users. In this guide, you'll learn how to use the Dropdown Menu component. ## Usage ```tsx import { DropdownMenu } from "@medusajs/ui" ``` ```tsx Trigger Edit Add Delete ``` --- ## API Reference --- ## Examples ### Sorting This example shows how to display collection sorting choices using a Dropdown Menu. ### Dropdown with Submenu ### Disabled Items and Using Icons ### Keyboard Shortcuts (with handling) This example shows how to visually display keyboard shortcuts in the menu and handle them in your application logic. You can use the {osShortcut}E and {osShortcut}D shortcuts to trigger the actions of the dropdown items.