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>
<copy-clipboard icon-theme="dark" tooltip-position="right"></copy-clipboard>
import { copy } from '@geduramc/copy-clipboard-element'
copy('Lorem Ipsum')
name | type | default |
---|---|---|
icon-theme | 'light' | 'dark' | 'light' |
tooltip-position | 'top' | 'right' | 'bottom' | 'left' | 'right' |
tooltip-text | string | 'copied!' |
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'feat: add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request