I have used copy-to-clipboard
library to copy text to clipboard.
Go here and scroll down. At the bottom, you'll see a share icon. On clicking on that icon, you'll see copy icon.
Implemention
import copy from "copy-to-clipboard";
const copyUrl = (url) => {
let copied = copy(url);
if (copied) {
// show message
}
};
Top comments (0)