Skip to content

createCopyButton

const createCopyButton: () => HTMLDivElement

Defined in: extensions/copyButton/index.ts:11

Creates a static copy button that can be added to the overlays of an editor or code block. The firstChild of the element returned is the button itself.

HTMLDivElement