# react-copy-the-text

> A React component for copying text to the clipboard.

Latest version **4.1.0** (published 2023-06-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-copy-the-text
pnpm add react-copy-the-text
yarn add react-copy-the-text
bun add react-copy-the-text
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 4.1.0 |
| Published | 2023-06-04 |
| First published | 2023-05-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 9 |
| Unpacked size | 2.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Sanju |
| Maintainers | sanju_sanju |
| Keywords | react, component, copy, text, clipboard |

## Links

- npm: https://www.npmjs.com/package/react-copy-the-text
- Repository: https://github.com/sanju998/react-copy-text
- Homepage: https://github.com/sanju998/react-copy-text#readme
- Issues: https://github.com/sanju998/react-copy-text/issues
- npm.io page: https://npm.io/package/react-copy-the-text

## Dependencies (9)

- [react](https://npm.io/package/react.md) ^16.14.0
- [csstype](https://npm.io/package/csstype.md) ^3.1.2
- [react-is](https://npm.io/package/react-is.md) ^16.13.1
- [js-tokens](https://npm.io/package/js-tokens.md) ^4.0.0
- [react-dom](https://npm.io/package/react-dom.md) ^16.14.0
- [scheduler](https://npm.io/package/scheduler.md) ^0.19.1
- [prop-types](https://npm.io/package/prop-types.md) ^15.8.1
- [loose-envify](https://npm.io/package/loose-envify.md) ^1.4.0
- [object-assign](https://npm.io/package/object-assign.md) ^4.1.1

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 4.1.0 (latest) — 2023-06-04
- 4.0.0 — 2023-06-04
- 1.2.0 — 2023-06-04
- 1.1.0 — 2023-05-28
- 1.0.0 — 2023-05-28

## README

# CopyText

A React component for copying text to the clipboard.

## Installation

## Usage

```tsx


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;

---
_Source: https://npm.io/package/react-copy-the-text · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
