Skip to content

kitze/copy-lite

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 
 
 

Zero To Shipped

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)

About

Copy to clipboard function with no dependencies

Resources

Stars

Watchers

Forks

Packages

No packages published