Overlays

Context menu

@xui/context-menu

Opens the same @xui/menu panel where the user right-clicks. Built on CdkContextMenuTrigger, so it shares the menu's keyboard model, submenu aim and dismissal — only the way it opens differs. Right-click is not something jsdom exercises, so this story is the real check.

Install

pnpm add @xui/context-menu

Add the barrel to a standalone component's imports:

import { XuiContextMenuImports } from '@xui/context-menu';

@Component({
  imports: [XuiContextMenuImports],
  // …
})

Examples

Default

Loading preview…

API

XuiContextMenuTrigger

directive[xuiContextMenuTriggerFor]

Opens a menu where the user right-clicks (or long-presses) on the host.

Source

libs/ui/context-menu/xui

xUI 2.0.0 — Apache 2.0 licensed. Built with Angular and Tailwind CSS.