1.0.12 • Published 6 years ago
handy-copy v1.0.12
Handy-Copy
A handy way to copy anything to clipboard. Screenshots below!!
Quick links
Screenshots
These screenshots are from React-Instagram-clone-2.0!!
Usage with npm or Yarn
- First install the package with
npm
orYarn
.
#npm
npm install handy-copy
#or with yarn
yarn add handy-copy
- And here comes the fun part.
import Copy from 'handy-copy'
Copy({
value: "I will be copied!", // What you want to copy
done: () => { // Callback function
console.log('Link Copied!!')
}
})
API
Copy(options:Object)
options = {
value,
done
}
Thanks for reading!!