0.0.5 • Published 5 years ago
luban-clipbooard v0.0.5
usage
this is deprecate , please use luban-clipboard
npm i luban-clipboard
import Clipboard from 'luban-clipboard';
const Demo = () => {
const onChange = (e) => {
console.log(e)
}
return (
<Clipboard copy={'Text to be copied'} onChange={onChange}>
<div>
<div>Text to be copied</div>
<div>ctrl + v to copy</div>
</div>
</Clipboard>
)
}