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 | nullcopied_display_duration?
type
numberoptional default
1000allow_copying_empty_string?
type
booleanoptional
icon_button?
Defaults to true, ignored if children is provided.
type
booleanoptional default
truechildren?
type
Snippet<[copied: boolean, failed: boolean]>optional
snippet parameters
copied booleanfailed booleanintersects
OmitStrict<SvelteHTMLElements['button'], 'children'>