Skip to content

Browser support

Plain text works wherever navigator.clipboard.writeText exists: Chromium 66+, Firefox 63+, Safari 13.1+. Where it does not (a plain-HTTP page, a webview without navigator.clipboard), text, HTML and JSON are copied through the browser’s copy command instead, in every engine tested; only images need HTTPS.

Pop-out windows. A window’s clipboard only works while its own document has focus. When a field lives in a pop-out window (window.open plus a React portal: a detached chat, a second monitor panel), the click happens there, so CopyField and PasteField use the clipboard of the window they are rendered in, not the opener’s. With the hooks, give that window to the adapter yourself:

import { createBrowserClipboardAdapter } from "react-smart-copy/core";
const { copy } = useCopy({ adapter: createBrowserClipboardAdapter({ getEnvironment: () => popup }) });

Embedded apps. A Microsoft Teams tab, a SharePoint web part, a Storybook canvas or any app in an iframe from another origin gets no clipboard access in Chromium unless the host page adds allow="clipboard-write", which you usually cannot change. When the browser refuses the write that way, the same copy command fallback is used while the click is still fresh, so a copy button keeps working. If you control the host page, allow="clipboard-write" is still the better fix: it also lets images through. Rich HTML, PNG images and multi-format need ClipboardItem: Chromium 86+, Safari 13.1+, Firefox 127+. Keyboard paste (targetProps, listenOnDocument) and drag-and-drop (dropTargetProps, PasteField.Zone) work in every modern browser. The Paste button needs navigator.clipboard.readText (Chromium 66+, Safari 13.1+, Firefox 125+) or read() for images (Chromium 86+, Safari 13.1+, Firefox 127+). Web custom formats (react-smart-copy/structured’s first carrier) need Chromium 104+; elsewhere the HTML carrier is used. Check MDN for embedded webviews. Where a capability is missing you get a typed error, never a silent success.