copy-to-clipboard-typescript
v1.5.0
Published
Copy-to-clipboard Typescript component
Downloads
41
Maintainers
Readme
copy-to-clipboard-typescript
📄 Would you like to use the TypeScript clipboard?
🎯 Getting started
npm install --save copy-to-clipboard-typescript
import { CopyToClipboard } from "copy-to-clipboard-typescript";
👀 How to use
import {ClipBoard} from copy-to-clipboard-typescript;
const test =() => {
const [text,setText] = useState();
<ClipBoard text={text}>
<div onClick={()=> setText("This is Copy Text")}>This is Copy Text</div>
</ClipBoard>
}
🪄 License
Copyright 2022. YunMinSeok all rights reserved.