
Research
/Security News
9 Malicious NuGet Packages Deliver Time-Delayed Destructive Payloads
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.
@patternfly/pfe-clipboard
Advanced tools
A button to copy the current URL to the system clipboard.
Read more about Clipboard in the PatternFly Elements Clipboard documentation
Load <pfe-clipboard> via CDN:
<script src="https://unpkg.com/@patternfly/pfe-clipboard?module"></script>
Or, if you are using NPM, install it
npm install @patternfly/pfe-clipboard
Then once installed, import it to your application:
import '@patternfly/pfe-clipboard';
<pfe-clipboard></pfe-clipboard>
Add a valid HTML selector to the target attribute, component will use document.querySelector to find the first element that the selector fits.
We recommend using ID's.
<pfe-clipboard copy-from="#copy-me"></pfe-clipboard>
<div id="copy-me">This text will get copied</div>
<pfe-clipboard copy-from="body .copy-me"></pfe-clipboard>
<div class="copy-me">This text will get copied</div>
Set the attribute copy-from="property" and set the property contentToCopy on the component with what should be copied.
<!-- Markup on the page -->
<pfe-clipboard copy-from="property" id="copyButton"></pfe-clipboard>
document.getElementById('copyButton').contentToCopy('Wakka wakka!');
<pfe-clipboard no-icon></pfe-clipboard>
<pfe-clipboard>
<span slot="label">hey you, copy this url!</span>
</pfe-clipboard>
<pfe-clipboard>
<span slot="success">URL Copied to clipboard</span>
</pfe-clipboard>
<pfe-clipboard>
<pfe-icon slot="icon" icon="web-icon-globe"></pfe-icon>
</pfe-clipboard>
<pfe-clipboard>
<span slot="label">Copy this article URL</span>
<span slot="success">URL Copied to clipboard</span>
<pfe-icon slot="icon" icon="web-icon-globe"></pfe-icon>
</pfe-clipboard>
<pfe-clipboard copied-duration="5"></pfe-clipboard>
<pfe-clipboard> implements many features of a standard button to provide an accessible
experience for all users. By default, role="button" and tabindex="0" are added to
inform assistive technology that <pfe-clipboard> should be treated as a button. It listens for
mouse clicks as well as enter and space key presses per the recommendation of
w3.org.
FAQs
Clipboard element for PatternFly Elements
The npm package @patternfly/pfe-clipboard receives a total of 1,210 weekly downloads. As such, @patternfly/pfe-clipboard popularity was classified as popular.
We found that @patternfly/pfe-clipboard demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 16 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.