Logo Docs

Context Menu

Context Menu

The Context Menu provides pointer-anchored overlay actions with submenu and dismiss behavior using `data-kt-context-menu*` attributes.

Dismiss

Set data-mv-context-menu-dismiss="true" on action elements to close the menu hierarchy after click.

Right click and choose an action

Placement

Use data-mv-context-menu-placement and data-mv-context-menu-placement-rtl to tune menu direction.

Top left
Top right

With Modal

Context menus can be used inside MVModal content.

Context Menu in Modal

Right click here

Keyboard

Use Escape to close opened menus. This variant shows keyboard-focused usage hints.

Right click to open context menuPress Esc to close

Disabled Items

Use native disabled state to keep unavailable actions visible but non-interactive.

Right click for disabled states

Icons

Use icon-leading actions for improved scanability in dense context menus.

Right click for icon menu

Shortcut Hints

Display keyboard shortcut hints on the right side of each action.

Right click for shortcut hints

Basic Usage

Open a menu with right click from a configured trigger area.

Right click inside this area