Copy Button

Web component to copy target text/dom-node value to clipboard
Alternatives To Copy Button
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Flowpoints_ml332
4 years ago3mitJavaScript
An intuitive approach to creating deep learning models
Cheval23623 years ago4January 29, 20211mpl-2.0JavaScript
:clipboard: Copy to the clipboard using JavaScript without writing JS. A full solution for all browsers and all devices. LibreJS compliant.
Pyrobot217
4 years ago5mitPython
A pure python windows automation library loosely modeled after Java's Robot Class.
Xmousepasteblock204
2 years agoC
Userspace tool to disable middle mouse button paste in Xorg
16counters116
4 years agounlicenseAssembly
GUI for those who don't do GUI
Macpaste106
2 years ago3unlicenseC
Global middle-mouse-click copy/paste for Mac OSX (C).
Docsify Copy Code9215a month ago8August 18, 20231mitJavaScript
A docsify plugin that copies Markdown code block to your clipboard
Codehighlighter For Typecho92
5 years ago1JavaScript
基于 prismjs 的代码语法高亮插件 for Typecho,可显示语言类型、行号,有复制代码到剪切板功能。
React Share Button86
7 years ago1mitJavaScript
📱 React share button component with web-share api and fallback modal with native intent urls
Ember Cli Clipboard7430616a month ago24November 15, 2021mitJavaScript
A simple ember wrapper around clipboard.js
Alternatives To Copy Button
Select To Compare


Alternative Project Comparisons
Readme

<copy-button></copy-button>

A web-component that is not relying on Flash to copy stuff into the clipboard. Experience may vary, based on browser support, with downgrading to using prompt.

Installation

NPM

npm i --save copy-button after which you're good to use copy-button &

  • require it from your main file
  • add 'node_modules/copy-button/bundled.min.js' as script in your html

CDN

You can also use it from wzrd.in CDN and drop <script src='https://wzrd.in/standalone/copy-button@latest'></script> into your html

Usage

After having script ran, you're good to use <copy-button></copy-button> in your markup.

Inner content

If you're not specifying inner content, it would default to 'Click to copy to clipboard', otherwise provided content would be inserted into the button. Can use icons here, etc. See example

target-text

If you specify target-text attribute on button, provided value will be copied to clipboard. Example

target-element

If you specify target-element attribute on button, value or text of provided DOM node will be copied to clipboard (it will be retrieved using document.getElementById if value will be specified as #specifiedID or document.querySelectorAll in other cases). See examples

Under the hood

Built on top of document.registerElement polyfill & copy-to-clipboard

Popular Clipboard Projects
Popular Button Projects
Popular User Interface Categories

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
Javascript
Button
Dom
Webcomponents
Clipboard