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
18
increased by157.14%
Maintainers
1
Install size
8.53 kB
Created
Weekly downloads
 

Readme

Source

Demo 示例

img

Github Address

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='www.google.cn' suffix='(click)'>
    <span>URL</span>
  </CopyClipboard>

Options

paramtype
textStringEnter the text what you need to copy
suffixStringHow to Use Tips


Chinese

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

安装

npm工具执行语法:

$ npm install --save react-copy-clipboard

使用

  import CopyClipboard from 'react-copy-clipboard';

  <CopyClipboard text='www.baidu.com' suffix='(点击复制)'>
    <span>地址</span>
  </CopyClipboard>

参数

paramtype
textString输入你需要要拷贝的文本
suffixString额外的提示用户如何使用

Keywords

FAQs

Last updated on 11 Sep 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