UNPKG

zent

Version:

一套前端设计语言和基于React的实现

20 lines (19 loc) 708 B
import { Component } from 'react'; import Notify from '../notify'; import { II18nLocaleCopyButton } from '../i18n'; export interface ICopyButtonProps { text: (() => string) | string; onClick?: React.MouseEventHandler; onCopySuccess?: string | (() => void); onCopyError?: string | (() => void); } export declare class CopyButton extends Component<ICopyButtonProps> { static defaultProps: { onCopySuccess: string; onCopyError: string; }; onCopyCallback: (type: keyof typeof Notify, callback: string | (() => void)) => void; onCopy: (i18n: II18nLocaleCopyButton) => (text: string, result: boolean) => void; render(): JSX.Element; } export default CopyButton;