Skip to content

Dependency-free custom element with shadow DOM. Specify text as a property that a user can then copy to the clipboard.

Notifications You must be signed in to change notification settings

o-t-w/copypaste-webcomponent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Dependency-free custom element with shadow DOM. Specify text as a property that a user can then copy to the clipboard.

Usage

  • type npm install copypaste-webcomponent in your terminal

  • import the module

     <script type="module">
     import './node_modules/copypaste-webcomponent/index.js';
     </script>
    
  • plop the <copy-paste></copy-paste> component in your markup wherever you want it to appear!

  • The text can be whatever you want! e.g.

<copy-paste>lorem ipsum</copy-paste>

About

Dependency-free custom element with shadow DOM. Specify text as a property that a user can then copy to the clipboard.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published