Copying menu item — a MenuItem preset for copy-to-clipboard rows inside a
Menu. Set copy for a literal string, copyNode to copy a DOM region, or
copyUrl to copy the current page URL. For dynamic text, pass a controlled
copy string and set it in onCopyRequest before activation.
It composes a plain <MenuItem> with a slotted <a-copy> child that performs
the write when the row is chosen — the item itself carries no copy behavior.
The row is kept open (data-menu-open) so the feedback shows: this wrapper
flips the leading icon to a check / ✕ and retones for ~2s (see useCopyFeedback).
Defaults label to "Copy" and the leading icon to copy; override either.
iconPlacement moves that glyph to the trailing edge or omits it. Other props
pass through — tone, kbd, onCopied.
Copying menu item — a
MenuItempreset for copy-to-clipboard rows inside aMenu. Setcopyfor a literal string,copyNodeto copy a DOM region, orcopyUrlto copy the current page URL. For dynamic text, pass a controlledcopystring and set it inonCopyRequestbefore activation.It composes a plain
<MenuItem>with a slotted<a-copy>child that performs the write when the row is chosen — the item itself carries no copy behavior. The row is kept open (data-menu-open) so the feedback shows: this wrapper flips the leading icon to a check / ✕ and retones for ~2s (seeuseCopyFeedback).Defaults
labelto "Copy" and the leadingicontocopy; override either.iconPlacementmoves that glyph to the trailing edge or omits it. Other props pass through —tone,kbd,onCopied.