UNPKG

react-copy-to-clipboard-ts

Version:

React 18, 19 compatible copy-to-clipboard component with TypeScript

24 lines (18 loc) 599 B
import * as React_2 from 'react'; export declare type ChildProps = { onClick?: (event: React_2.MouseEvent<HTMLElement>) => void; [key: string]: unknown; }; export declare const CopyToClipboard: React_2.FC<CopyToClipboardProps>; export declare interface CopyToClipboardOptions { debug?: boolean; message?: string; format?: string; } export declare interface CopyToClipboardProps { text: string; onCopy?: (text: string, result: boolean) => void; options?: CopyToClipboardOptions; children: React_2.ReactElement<ChildProps>; } export { }