copy-to-clipboard-react
v1.0.8
Published
library for copying text to clip board
Downloads
19
Maintainers
Readme
copytoclipboard
library for copying text to clip board
Install
npm install --save copy-to-clipboard-react
Usage
import React, { Component } from 'react'
import CopyToCLipBoard from 'copy-to-clipboard-react'
import 'copy-to-clipboard-react/dist/index.css'
class Example extends Component {
render() {
return (
<CopyToCLipBoard
text={'npm install copy-to-clipboard-react'}
height={'50%'}
width={'50%'}
/>
)
}
}
Demo
https://sayumani.github.io/copytoclipboard/
License
MIT © sayumani