Permalink
Cannot retrieve contributors at this time
37 lines (37 sloc)
1.29 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /// <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; |