Action to invoke when clicked.
OptionaldynamicOptional per-target label. When present, resolve() materializes
the final label from the right-clicked target (e.g. "Copy IRI" vs
"Copy ID" depending on the element's id shape); label remains
the static fallback.
OptionalfilterOptional filter: if provided, the item only appears when filter returns true for the current target.
OptionaliconOptional icon (CSS class or emoji).
Unique identifier for this item.
Display label.
OptionalseparatorIf true, show a separator line before this item.
OptionalsubmenuOptional submenu items.
A single menu item.