react-clipboard-button
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

npm version

react-clipboard-button

  • [x] very light (~33KB not minified)
  • [x] only one dependency (clipboard.js)
  • [x] compatibel with IE11+

Install

npm install react-clipboard-button

Use

<CopyToClipboardButton 
  text={`Hello !`}
  onSuccess={() => console.log('success!')}
  onError={() => console.log('error!')}
>
  <button>Copy To Clipboard !</button>
</CopyToClipboardButton>

Readme

Keywords

none

Package Sidebar

Install

npm i react-clipboard-button

Weekly Downloads

81

Version

2.0.0

License

none

Unpacked Size

48.7 kB

Total Files

5

Last publish

Collaborators

  • guipas