User-defined shape for data returned upon menu item click. Should be a union of all possible data shapes for the entire menu, and the click handler should process these with a "reducer" pattern.
An array describing the menu to show.
Optional
xThe window x coordinate where to show the menu. Defaults to mouse position. If using must also use y.
Optional
yThe window y coordinate where to show the menu. Defaults to mouse position. If using must also use x
Options for showing a popup menu