@geduramc/copy-clipboard-element
TypeScript icon, indicating that this package has built-in type declarations

1.0.8 • Public • Published

Copy to clipboard - Custom Html Element

Issues GitHub pull requests

🔗 Demo

Installation

Package install

npm i @geduramc/copy-clipboard-element

CDN

<script type="module" src="https://unpkg.com/@geduramc/copy-clipboard-element@latest/lib/copy-element"></script>

Usage

<copy-clipboard icon-theme="dark" tooltip-position="right"></copy-clipboard>
import { copy } from '@geduramc/copy-clipboard-element'

copy('Lorem Ipsum')

Attributes

name type default
icon-theme 'light' | 'dark' 'light'
tooltip-position 'top' | 'right' | 'bottom' | 'left' 'right'
tooltip-text string 'copied!'

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'feat: add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request


By @geduramc

Package Sidebar

Install

npm i @geduramc/copy-clipboard-element

Weekly Downloads

0

Version

1.0.8

License

none

Unpacked Size

12.9 kB

Total Files

5

Last publish

Collaborators

  • geduramc