Pickers & inputs
JS behaviour
Context menu
Right-click, long-press or Shift+F10: the menu opens right at the pointer and grows out of it; separators, disabled items and a submenu.
Real scenarios
The component as it is used in a product — not a specimen grid.
Shared drive
Right-click a fileSprint board card
Important props
| Prop | Type | Default | What it does |
|---|---|---|---|
| items | array | [] | Keys: id, label, icon, shortcut, disabled, tone ('danger'), separator, heading, items (a submenu). |
| x-on:nx-select | event | — | Fires with the picked item’s id in $event.detail. |
| press-delay | int | 500 | How long a touch must rest before it opens (ms). |
Snippet
<x-nx::context-menu :items="$fileActions" x-on:nx-select="$wire.run($event.detail)">
…the file card…
</x-nx::context-menu>