UNPKG

@sheerid/jslib-nightly

Version:

SheerID JavaScript Library

20 lines (19 loc) 513 B
import { default as React } from 'react'; interface Props { textToCopy: string; notificationTimeout?: number; notificationText?: string | JSX.Element; children?: React.ReactNode; } interface State { isShowing: boolean; } declare class CopyToClipboard extends React.Component<Props, State> { notificationTimeout: number; timeoutRef: any; constructor(props: Props); componentWillUnmount(): void; doCopy(): void; render(): React.JSX.Element; } export { CopyToClipboard };