@types/simple-react-clipboard
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

Installation

npm install --save @types/simple-react-clipboard

Summary

This package contains type definitions for simple-react-clipboard (https://github.com/donfour/simple-react-clipboard#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/simple-react-clipboard.

index.d.ts

import { JSX, ReactNode } from "react";

interface ClipboardProps {
    render: (arg0: { copy: () => void }) => ReactNode;
    text: string;
    props?: object | undefined;
    // eslint-disable-next-line @typescript-eslint/no-invalid-void-type
    onSuccess?: () => void | undefined;
    // eslint-disable-next-line @typescript-eslint/no-invalid-void-type
    onError?: () => void | undefined;
}

declare function Clipboard({
    render,
    text,
    props,
    onSuccess,
    onError,
}: ClipboardProps): JSX.Element;

export default Clipboard;

Additional Details

  • Last updated: Fri, 15 Dec 2023 19:06:42 GMT
  • Dependencies: @types/react

Credits

These definitions were written by Huy Tran.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/simple-react-clipboard

Weekly Downloads

111

Version

1.0.3

License

MIT

Unpacked Size

3.83 kB

Total Files

5

Last publish

Collaborators

  • types