react-clipboard-button
v2.0.0
Published
[![npm version](https://badge.fury.io/js/react-clipboard-button.svg)](https://badge.fury.io/js/react-clipboard-button)
Downloads
815
Readme
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>