Movatterモバイル変換


[0]ホーム

URL:


⚠️

Security Update: npm classic token creation is now disabled. Existing classic tokens will be revoked onNovember 19, 2025. Migrate to trusted publishing or granular access tokens to avoid disruption.Learn more.

@svelte-put/copy
TypeScript icon, indicating that this package has built-in type declarations

4.0.0 • Public • Published

npm.badgebundlephobia.badgedocs.badge

Svelte actionuse: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 itsreadme.

Usage & Documentation

See the dedicated documentation page here.

Quick Start

<scriptlang="ts">import{copy,typeCopyDetail}from'@svelte-put/copy';functionhandleCopied(e:CustomEvent<CopyDetail>){console.log('Text copied:',e.detail.text);}</script><buttontype="button"use:copyoncopied={handleCopied}>Click to copy this</button>

Provenance

Share feedback

Package Sidebar

Install

npm i @svelte-put/copy

Weekly Downloads

1,787

Version

4.0.0

License

MIT

Unpacked Size

14.9 kB

Total Files

10

Last publish

Collaborators

  • vnphanquang

[8]ページ先頭

©2009-2025 Movatter.jp