Socket
Book a DemoInstallSign in
Socket

svelte-clipboard

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

svelte-clipboard

A Svelte component easy to copy text to clipboard.

latest
Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
498
12.67%
Maintainers
1
Weekly downloads
 
Created
Source

cover

Svelte Clipboard

license npm downloads

nodei

A Svelte component easy to copy text to clipboard.

Install

$ npm i svelte-clipboard --save-dev

Demo

Live Demo

Usage

<script>
  import Clipboard from "svelte-clipboard";
</script>

<Clipboard
  text="Your Text Need to Copy"
  let:copy
  on:copy={() => {
    console.log('Has Copied');
  }}>
  <button on:click={copy}>Copy</button>
</Clipboard>

License

MIT

Keywords

svelte

FAQs

Package last updated on 11 Sep 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts