Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

copy-clipboard-js

maifeeulasad117MIT2.1.1TypeScript support: included

Directly copy any string to clipboard in react.js with this module

clipboard, clip-board, copy

readme

🚀 copy-clipboard-js 🎉📋 NPM Downloads 🏆

🔥 Instantly copy any string to clipboard in React.js with this super lightweight module! ⚡💡


📦 Installation 💻🔧

👉 Run this command in your terminal:

npm i copy-clipboard-js

🎯 Or, directly add it to your package.json:

"copy-clipboard-js": "^1.0.3"

🚀 Example 🛠️✨

⚛️ React.js 🏗️

import * as CCJ from "copy-clipboard-js";

// Copy text anywhere in your app! 📋✅
CCJ.copyText("🚀 something to copy! 🎉");

🎭 Live Demo 🚀🌟

Check it out in action 👉 CodeSandbox 🎨💡


🏆 Dependency-Free! 🛠️

✅ 0 dependencies, lightweight, and blazing fast! ⚡🚀


📸 Snapshot 💖

love from maifee

🎉 Enjoy coding! 🚀🔥