Docs
Context Menu

Context Menu

Context Menu component displays a menu to the user, typically a set of actions or functions, triggered by a button or a right-click event. It provides a convenient and context-sensitive way to present options relevant to a specific element or area within the user interface. The Context Menu component enhances user interaction by offering a tailored set of actions based on the user's context, making it suitable for applications where contextual options are crucial.

Right click here

Installation

yarn add @camped-ui/context-menu

Usage

import {
  ContextMenu,
  ContextMenuContent,
  ContextMenuItem,
  ContextMenuTrigger,
} from "@camped-ui/context-menu";
<ContextMenu>
  <ContextMenuTrigger>Right click</ContextMenuTrigger>
  <ContextMenuContent>
    <ContextMenuItem>Profile</ContextMenuItem>
    <ContextMenuItem>Billing</ContextMenuItem>
    <ContextMenuItem>Team</ContextMenuItem>
    <ContextMenuItem>Subscription</ContextMenuItem>
  </ContextMenuContent>
</ContextMenu>