-
Notifications
You must be signed in to change notification settings - Fork 37
/
react-clipboard.d.ts
37 lines (37 loc) · 1.29 KB
/
react-clipboard.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/// <reference types="clipboard" />
import * as PropTypes from 'prop-types';
import * as React from 'react';
interface ClipboardButtonProps {
isVisibleWhenUnsupported?: boolean;
title?: string;
type?: string;
className?: string;
style?: React.CSSProperties;
component?: any;
onClick?: any;
onSuccess?: (e: ClipboardJS.Event) => void;
onError?: (e: ClipboardJS.Event) => void;
options?: ClipboardJS.Options;
}
declare class ClipboardButton extends React.Component<ClipboardButtonProps> {
static propTypes: {
options(props: ClipboardButtonProps, propName: string, componentName: string): Error;
type: PropTypes.Requireable<string>;
className: PropTypes.Requireable<string>;
style: PropTypes.Requireable<object>;
component: PropTypes.Requireable<string | object>;
children: PropTypes.Requireable<string | number | object>;
};
static defaultProps: {
onClick(): void;
};
element: any;
clipboard: any;
propsWith(regexp: RegExp, remove?: boolean): {};
componentWillUnmount(): void;
componentDidMount(): void;
render(): React.DetailedReactHTMLElement<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>;
getType(): string;
getComponent(): any;
}
export default ClipboardButton;