react-copy-button-wrapper

Component Wrapper for Copy to Clipboard Button with React.

Usage

% npm install react-copy-button-wrapper

<ReactCopyButtonWrapper text='test'>
  <button>Copy</button>
</ReactCopyButtonWrapper>

How works

Modern Browsers

Firefox, Chrome, Opera, IE9+ works with Selection API and execCommand

Safari

It works with react-zeroclipboard

which is relies on zeroclipboard.

It depends on Flash!!!!!!!!!!!!

< IE9

It works with window.clipboardData.setData

GitHub