alpine-clipboard

Simply copy to the users clipboard in your Alpine.js components. 📋

MIT License

Downloads
29.2K
Stars
353
Committers
4
alpine-clipboard - v2.3.0 Latest Release

Published by ryangjchandler about 1 year ago

What's Changed

New Contributors

Full Changelog: https://github.com/ryangjchandler/alpine-clipboard/compare/v2.2.0...v2.3.0

alpine-clipboard - v2.2.0

Published by ryangjchandler over 2 years ago

alpine-clipboard - v2.1.0

Published by ryangjchandler almost 3 years ago

alpine-clipboard - v2.0.0

Published by ryangjchandler over 3 years ago

Added

  • Added support for Alpine 3.x. (#16)
alpine-clipboard - v1.0.0

Published by ryangjchandler over 3 years ago

Added

  • Added support for new Clipboard API. (#6)

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:

  1. I feel really sorry for you.
  2. Consult the README.
alpine-clipboard - v0.2.0

Published by ryangjchandler almost 4 years ago

Added

  • Added support for passing anonymous functions / closures through to $clipboard. (#2)
alpine-clipboard - v0.1.2

Published by ryangjchandler about 4 years ago

Fixes

  • Fixed AlpinePlugin name and renamed to AlpineClipboard to prevent any conflicts.
alpine-clipboard - v0.1.1

Published by ryangjchandler about 4 years ago

Fixes

  • Fixing release schedule.
alpine-clipboard - v0.1.0

Published by ryangjchandler about 4 years ago

Initial release

  • Includes a $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>
Package Rankings
Top 5.75% on Npmjs.org
Badges
Extracted from project README
Monthly downloads via CDN