UNPKG

@mantine/core

Version:

React components library focused on usability, accessibility and developer experience

16 lines (15 loc) 578 B
export interface CopyButtonProps { /** Children callback, provides current status and copy function as an argument */ children: (payload: { copied: boolean; copy: () => void; }) => React.ReactNode; /** Value that will be copied to the clipboard when the button is clicked */ value: string; /** Copied status timeout in ms, `1000` by default */ timeout?: number; } export declare function CopyButton(props: CopyButtonProps): import("react/jsx-runtime").JSX.Element; export declare namespace CopyButton { var displayName: string; }