React-Clipboard
React wrapper for clipboard.js.
Installation
$ npm i --save react-clipboard.js
Usage
You can use clipboard.js
original data-*
attributes:
-
If you want to provide any constructor option as in
new Clipboard('#id', options)
,
you may useoption-*
attributes -
callbacks will be connected via
on*
attributes (such as onSuccess)
Custom HTML tags may be used as well:
Default html properties may be passed with the button-*
pattern: