CopyToClipboard.svelte view source
text
type
string | nullcopied_display_duration?
type
numberoptional
allow_copying_empty_string?
type
booleanoptional
icon_button?
Defaults to true, ignored if children is provided.
type
booleanoptional
oncopy?
type
(text: string | null, e: MouseEvent) => voidoptional
children?
type
Snippet<[copied: boolean, failed: boolean]>optional