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.
import { ReactNode } from "react";
interface ClipboardProps {
render: () => ReactNode;
text: string;
props?: object | undefined;
onSuccess?: () => void | undefined;
onError?: () => void | undefined;
}
declare function Clipboard({
render,
text,
props,
onSuccess,
onError,
}: ClipboardProps): JSX.Element;
export default Clipboard;
Additional Details
- Last updated: Sat, 11 Nov 2023 21:07:21 GMT
- Dependencies: @types/react
Credits
These definitions were written by Huy Tran.