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 file
Q3 report.pdf 2.4 MB · edited today Right-click, long-press or press Shift+F10 for actions
Brand assets 48 items Right-click, long-press or press Shift+F10 for actions
Launch video.mp4 186 MB · 2 days ago Right-click, long-press or press Shift+F10 for actions
Hero shot.png 3.1 MB · last week Right-click, long-press or press Shift+F10 for actions

Sprint board card

Review Fix RTL caret in the search field Long-press on a phone, Shift+F10 on a keyboard. Right-click, long-press or press Shift+F10 for actions

Important props

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>