carbon-components-svelte/types/CopyButton/CopyButton.d.ts
2020-11-19 14:16:01 -08:00

19 lines
596 B
TypeScript

/// <reference types="svelte" />
import { CopyProps } from "../Copy/Copy";
export interface CopyButtonProps extends CopyProps {
/**
* Set the title and ARIA label for the copy button
* @default "Copy to clipboard"
*/
iconDescription?: string;
}
export default class CopyButton {
$$prop_def: CopyButtonProps;
$$slot_def: {};
$on(eventname: "click", cb: (event: WindowEventMap["click"]) => void): () => void;
$on(eventname: "animationend", cb: (event: WindowEventMap["animationend"]) => void): () => void;
$on(eventname: string, cb: (event: Event) => void): () => void;
}