Skip to content

p-m-p/parsonic

Repository files navigation

A collection of handy little web components.

Copy to clipboard

Easily add copy to clipboard functionality for text, images and other data types.

<script
  defer
  src="https://cdn.jsdelivr.net/npm/@parsonic/copy-to-clipboard/min.js"></script>

<copy-to-clipboard>
  <pre><code>pnpm add @parsonic/copy-to-clipboard</code></pre>
</copy-to-clipboard>

<copy-to-clipboard data-url="/img/awesome-pic-full.png">
  <img src="/img/awesome-pic-thumbnail.png" alt="An awesome picture" />
</copy-to-clipboard>

View the package details for full usage instructions.

Share button

Add a share button to any web page.

<script
  defer
  src="https://cdn.jsdelivr.net/npm/@parsonic/share-button/min.js"></script>

<share-button></share-button>

View the package details for full usage instructions.