@10up/block-components
Version:
10up Components built for the WordPress Block Editor.
31 lines • 689 B
TypeScript
interface ClipboardButtonProps {
/**
* The text to copy to the clipboard.
*/
text: string;
/**
* Boolean to disable the button.
*/
disabled: boolean;
/**
* Function to run when the text is successfully copied.
*/
onSuccess: Function;
/**
* Labels for the button.
*/
labels: ButtonLabels;
}
interface ButtonLabels {
/**
* Label for the button when it's ready to copy.
*/
copy?: string;
/**
* Label for the button when the text has been copied.
*/
copied?: string;
}
export declare const ClipboardButton: React.FC<ClipboardButtonProps>;
export {};
//# sourceMappingURL=index.d.ts.map