copymytext
v1.2.1
Published
copy to clipboard
Downloads
8
Readme
copytoclipboard
library for copy to clipboard
Install
npm install copymytext
Usage
import { copyToClipboard } from "copymytext";
class Example extends Component {
render() {
return (
<div>
<p className="mb-1">
Bank code: <strong style={{ color: "red" }}>012345678</strong>{" "}
<i
className="fas fa-copy"
onClick={() => copyToClipboard("012345678")}
style={{ cursor: "pointer" }}
>
{" "}
</i>
</p>
</div>
);
}
}
License
MIT © trinhminhhieu