0.0.2 • Published 6 years ago

react-clickcopy v0.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
6 years ago

react-clickcopy

Copy a piece of text by clicking on it.

Install

npm install --save react-clickcopy
yarn add react-clickcopy

Usage

export default () => (
  <h3><ClickCopy>http://localhost:8080</CopyClick><h3>
);

The component itself does not validate its children. The text extrapolation is handled natively by the browser through Range.selectNodeContents and Document.execCommand('copy').

0.0.3-0

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago