Simply copy to the users clipboard in your Alpine.js components. 📋
MIT License
Full Changelog: https://github.com/ryangjchandler/alpine-clipboard/compare/v2.2.0...v2.3.0
Published by ryangjchandler over 2 years ago
Full Changelog: https://github.com/ryangjchandler/alpine-clipboard/compare/v2.1.0...v2.2.0
Published by ryangjchandler almost 3 years ago
Full Changelog: https://github.com/ryangjchandler/alpine-clipboard/compare/v2.0.0...v2.1.0
Published by ryangjchandler over 3 years ago
Published by ryangjchandler over 3 years ago
This release includes 2 new distributions. The default is a modern distribution that takes advantage of the Clipboard API, instead of the old-school create a <textarea>
and execCommand
.
The Clipboard API does not support IE11, so if you need to still support legacy browsers:
Published by ryangjchandler almost 4 years ago
$clipboard
. (#2)Published by ryangjchandler about 4 years ago
AlpinePlugin
name and renamed to AlpineClipboard
to prevent any conflicts.Published by ryangjchandler about 4 years ago
Published by ryangjchandler about 4 years ago
$clipboard
magic property that can be invoked to copy data to the clipboard.<div x-data="{ input: '' }">
<input x-model="input">
<button type="button" @click="$clipboard(input)">Copy to Clipboard</button>
</div>