Socket
Socket
Sign inDemoInstall

react-copy-clipboard

Package Overview
Dependencies
0
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    react-copy-clipboard

A react component based on js, Click to copy and mouseover will show tip


Version published
Weekly downloads
19
increased by11.76%
Maintainers
1
Install size
19.8 kB
Created
Weekly downloads
 

Readme

Source

Demo 示例

img Github

Chinese

一个基于react的组件, 点击文字实现复制和鼠标悬浮文字上方会显示文本和复制提示

安装

Install with npm:

$ npm install --save react-copy-clipboard

使用

  import CopyClipboard from 'react-copy-clipboard';

  <CopyClipboard text='即将被拷贝的文字'>
    <span>单击我复制</span>
  </CopyClipboard>

参数

paramtype
textString输入你需要要拷贝的文本

English

A react component based on js, Click to copy and mouseover will show tip

Install

Install with npm:

$ npm install --save react-copy-clipboard

Usage

   import CopyClipboard from 'react-copy-clipboard';

  <CopyClipboard text='Text to be copied'>
    <span>Click me to copy</span>
  </CopyClipboard>

Options

paramtype
textStringEnter the text what you need to copy

Keywords

FAQs

Last updated on 26 Aug 2020

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc