CopyToClipboard.svelte

Declarations
#

view source

CopyToClipboard
#

CopyToClipboard.svelte view source

text

type string | null

copied_display_duration?

type number
optional

allow_copying_empty_string?

type boolean
optional

icon_button?

Defaults to true, ignored if children is provided.

type boolean
optional

oncopy?

type (text: string | null, e: MouseEvent) => void
optional

children?

type Snippet<[copied: boolean, failed: boolean]>
optional