@antadesign/anta
    Preparing search index...

    Function MenuItemCopyUnreviewed

    • 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.

      Parameters

      Returns any

      <Menu>
      <MenuItemCopy copy={shareUrl} label="Copy link" kbd="⌘C" />
      <MenuItemCopy copyNode=".invoice" label="Copy invoice" />
      </Menu>