https://github.com/kitze/copy-lite
Copy to clipboard function with no dependencies
https://github.com/kitze/copy-lite
Last synced: about 1 year ago
JSON representation
Copy to clipboard function with no dependencies
- Host: GitHub
- URL: https://github.com/kitze/copy-lite
- Owner: kitze
- Created: 2019-08-06T11:35:53.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-05-25T15:05:20.000Z (about 3 years ago)
- Last Synced: 2025-03-27T04:12:26.360Z (about 1 year ago)
- Language: TypeScript
- Homepage: https://codesandbox.io/s/copy-lite-demo-3df2i
- Size: 1.6 MB
- Stars: 120
- Watchers: 3
- Forks: 2
- Open Issues: 17
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
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 bold element and a link', true)`
