svelte-code-copy

npm-version npm-license npm-download-month npm-min-size ci.yml website

❏ Just wrap it with this

▷ Installation
<script>
  import { CodeCopy } from 'svelte-code-copy'

  const code = 'Your code here'
</script>

<CodeCopy>
  <pre><code>{code}</code></pre>
</CodeCopy>