copy-lite
v0.1.2
Published
`import {copyToClipboard} from 'copy-lite'`
Downloads
6
Readme
copy-lite
import {copyToClipboard} from 'copy-lite'
API
copyToClipboard(content: string, richHtml: boolean)
Examples
Text
copyToClipboard('This is normal text')
Rich text
copyToClipboard('This text has a <b>bold</b> element and a <a href="https://google.com">link</a>', true)