# @types/react-copy-to-clipboard

> TypeScript definitions for react-copy-to-clipboard

Latest version **5.0.7** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/react-copy-to-clipboard
pnpm add @types/react-copy-to-clipboard
yarn add @types/react-copy-to-clipboard
bun add @types/react-copy-to-clipboard
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 5.0.7 |
| Published | 2023-11-07 |
| First published | 2017-03-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51441 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/react-copy-to-clipboard
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-copy-to-clipboard
- npm.io page: https://npm.io/package/@types/react-copy-to-clipboard

## Dependencies (1)

- [@types/react](https://npm.io/package/@types/react.md) *

## Recent versions

- 5.0.7 (latest) — 2023-11-07
- 5.0.4 (ts4.0) — 2022-07-27
- 5.0.2 (ts3.7) — 2021-10-15
- 5.0.1 (ts3.6) — 2021-07-07
- 5.0.0 (ts3.3) — 2020-12-07
- 4.3.0 (ts2.8) — 2019-09-27
- 4.2.5 (ts2.6) — 2018-02-12
- 4.2.4 (ts2.3) — 2018-01-23
- 4.2.2 (ts2.1) — 2017-03-30
- 5.0.6 — 2023-10-18
- 5.0.5 — 2023-09-27
- 5.0.3 — 2022-06-30
- 4.2.6 — 2018-08-04
- 4.2.3 — 2017-06-23
- 4.2.1 — 2017-03-27
- … 1 more at https://npm.io/package/@types/react-copy-to-clipboard/versions

## README

# Installation
> `npm install --save @types/react-copy-to-clipboard`

# Summary
This package contains type definitions for react-copy-to-clipboard (https://github.com/nkbt/react-copy-to-clipboard).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-copy-to-clipboard.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-copy-to-clipboard/index.d.ts)
````ts
import * as React from "react";

export as namespace CopyToClipboard;

declare class CopyToClipboard extends React.PureComponent<CopyToClipboard.Props> {}

declare namespace CopyToClipboard {
    class CopyToClipboard extends React.PureComponent<Props> {}

    interface Options {
        debug?: boolean | undefined;
        message?: string | undefined;
        format?: string | undefined; // MIME type
    }

    interface Props {
        children?: React.ReactNode;
        text: string;
        onCopy?(text: string, result: boolean): void;
        options?: Options | undefined;
    }
}

export = CopyToClipboard;

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 09:09:39 GMT
 * Dependencies: [@types/react](https://npmjs.com/package/@types/react)

# Credits
These definitions were written by [Meno Abels](https://github.com/mabels), [Bernabe](https://github.com/BernabeFelix), and [Ward Delabastita](https://github.com/wdlb).

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