@mantine/core
Version:
React components library focused on usability, accessibility and developer experience
17 lines (16 loc) • 583 B
TypeScript
import React from 'react';
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): React.JSX.Element;
export declare namespace CopyButton {
var displayName: string;
}