copy-to-clipboard-react-button
Version:
Simple CopyToClipboard React Based Button Component
14 lines (13 loc) • 645 B
TypeScript
import { ICopyToClipboard } from './types';
/**
* Simple Copy Button with a simple color change when clicked,
* after click the button turns disabled for 1 second
*
* @param text the text that should be copied to clip board
* @param defaultColor the color of the Icon when the button render, without interaction
* @param copiedColor the color of the Icon after the user interaction of click
*
*/
declare function CopyToClipboard({ text, defaultColor, copiedColor, }: ICopyToClipboard): import("react/jsx-runtime").JSX.Element;
declare const _default: import('react').MemoExoticComponent<typeof CopyToClipboard>;
export default _default;