# KptContextMenu (kpt-context-menu) A context menu (right mouse button) over the projected area. The panel is positioned at the cursor. Import: `import { KptContextMenu } from '@konce-pt/angular';` ## Inputs / outputs - `items`: KptMenuItem[] - { label, icon?, danger?, disabled?, separator? } It also honors `header` (a non-clickable row with `avatar`/`label`/`description`), `description` (a second line) and `badge` + `badgeVariant` (a badge on the right) - described in full in menu/llms.txt. - `selected`: KptMenuItem - the picked entry - The area that reacts to the right mouse button comes through ``. ## Example
Right-click here
## Keyboard The same model as `kpt-menu` (the shared `menu-keys.ts`): opening moves focus to the first item, arrows / `Home` / `End` move between items (disabled ones and separators are skipped), `Escape` and `Tab` close it and focus returns to where it was. `Shift+F10` and the context-menu key on a focused element inside the area open it too - the browser then sends `contextmenu` without mouse coordinates, so the panel is placed at that element. The panel is kept inside the viewport (8px from the edges). Touch screens have no right click, so still offer the same actions through a visible button with `kpt-menu`. ## Tokens The panel `--kpt-color-surface-raised`, `--kpt-elevation-3`. ## Positioning The panel opens in the top layer (`popover="manual"`), so an ancestor with `transform`, `filter` or `backdrop-filter` (an animated card, a glass panel) no longer shifts it and `overflow: hidden` no longer clips it. Scrolling or resizing the window closes the menu.