export const title = "Context menu components" export const description = "Free and open-source React context menu components built for modern applications and websites. Trigger these menus with a right-click, long-press, or the keyboard menu key, built using React Aria and styled with Tailwind CSS." export const links = { github: "https://github.com/untitleduico/react/tree/main/components/base/dropdown", rac: "https://react-spectrum.adobe.com/react-aria/Menu.html#context-menus" } import { DropdownContextMenuSimple } from "@/components/base/dropdown/dropdown-context-menu-simple.tsx"; import { DropdownContextMenuAdvanced } from "@/components/base/dropdown/dropdown-context-menu-advanced.tsx"; ## Installation Context menus reuse the same `Dropdown` component as our dropdown menus — only the trigger changes. You can add it using our CLI or manually: ```bash npx untitledui@latest add dropdown ``` Copy the files below into your project: Great! Now you can start using the context menu components in your project by just copy/pasting our examples below. ## Context menu examples Below are examples and variations of this context menu component. Right-click (or long-press on touch) the highlighted area to open the menu. ### Simple {{ tocOnly:true }} ### Advanced {{ tocOnly:true }}