showContextMenu
function only requires you to provide an array of objects describing the menu items.key
and an onClick
handler.key
value.onClick
handler will be called when the user clicks on the corresponding menu item.Mantine ContextMenu
.