CopyToClipboard.svelte

view source

Declarations
#

CopyToClipboard
#

CopyToClipboard.svelte view source

accepts children

import CopyToClipboard from '@fuzdev/fuz_ui/CopyToClipboard.svelte';

oncopy?

type ClipboardEventHandler<HTMLButtonElement> & ((text: string | null, e: MouseEvent) => void)
optional

text

type string | null

copied_display_duration?

type number
optional default 1000

allow_copying_empty_string?

type boolean
optional

icon_button?

Defaults to true, ignored if children is provided.

type boolean
optional default true

children?

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

intersects

OmitStrict<SvelteHTMLElements['button'], 'children'>

Depends on
#