3.0.2 • Published 3 days ago

@svelte-put/copy v3.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
3 days ago

@svelte-put/copy

npm.badge bundlephobia.badge docs.badge

Svelte action use:copy and utility for copying text to clipboard

svelte-put

This package is part of the @svelte-put family. For contributing guideline and more, refer to its readme.

Usage & Documentation

See the dedicated documentation page here.

Quick Start

<script lang="ts">
	import { copy, type CopyDetail } from '@svelte-put/copy';

	function handleCopied(e: CustomEvent<CopyDetail>) {
		console.log('Text copied:', e.detail.text);
	}
</script>

<button type="button" use:copy on:copied="{handleCopied}">Click to copy this</button>

Changelog

3.0.2

3 days ago

3.0.1

5 days ago

3.0.0

10 months ago

2.0.0

1 year ago

1.1.1

1 year ago

1.0.2

1 year ago

1.1.0

1 year ago

1.0.1

2 years ago

1.0.0

2 years ago

0.1.0

2 years ago