
Security News
Crates.io Implements Trusted Publishing Support
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
react-copy-clipboard
Advanced tools
A react component based on js, Click to copy and mouseover will show tip
A react component based on js, Click to copy and mouseover will show tip.
Install with npm:
$ npm install --save react-copy-clipboard
import CopyClipboard from 'react-copy-clipboard';
<CopyClipboard text='www.google.cn' suffix='(click)'>
<span>URL</span>
</CopyClipboard>
param | type | |
---|---|---|
text | String | Enter the text what you need to copy |
suffix | String | How to Use Tips |
一个基于react的组件, 点击文字实现复制和鼠标悬浮文字上方会显示文本和点击后的复制提示
npm工具执行语法:
$ npm install --save react-copy-clipboard
import CopyClipboard from 'react-copy-clipboard';
<CopyClipboard text='www.baidu.com' suffix='(点击复制)'>
<span>地址</span>
</CopyClipboard>
param | type | |
---|---|---|
text | String | 输入你需要要拷贝的文本 |
suffix | String | 额外的提示用户如何使用 |
FAQs
A react component based on js, Click to copy and mouseover will show tip
The npm package react-copy-clipboard receives a total of 19 weekly downloads. As such, react-copy-clipboard popularity was classified as not popular.
We found that react-copy-clipboard demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Security News
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.