Handy-Copy

A handy way to copy anything to clipboard!! 🖌🎨🖌🎨

Downloads
32
Stars
12

Handy-Copy

A handy way to copy anything to clipboard. Screenshots below!!

Quick links

  1. Screenshots
  2. Usage
  3. API options

Screenshots

These screenshots are from React-Instagram-clone-2.0!!

Usage with npm or Yarn

  1. First install the package with npm or Yarn.
#npm 
npm install handy-copy

#or with yarn
yarn add handy-copy
  1. 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!!

Package Rankings
Top 13.08% on Npmjs.org