react-copy-the-text

4.1.0 • Public • Published

CopyText

A React component for copying text to the clipboard.

Installation

Usage

import React from 'react';
import CopyText from 'react-copy-the-text';

const App: React.FC = () => {
  const handleCopy = () => {
    console.log('Text copied!');
    // Perform any additional actions upon copying the text
  };

  return (
    <div>
      <CopyText text="Sanju!" onCopy={handleCopy} />
    </div>
  );
};

export default App;

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
4.1.00latest

Version History

VersionDownloads (Last 7 Days)Published
4.1.00
4.0.00
1.2.01
1.1.00
1.0.00

Package Sidebar

Install

npm i react-copy-the-text

Weekly Downloads

1

Version

4.1.0

License

MIT

Unpacked Size

3 kB

Total Files

5

Last publish

Collaborators

  • sanju_sanju