@sheerid/jslib-nightly
Version:
SheerID JavaScript Library
21 lines (19 loc) • 514 B
TypeScript
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 };