mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
19 lines
596 B
TypeScript
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;
|
|
}
|