fuma 0.1.24 → 0.1.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -3,7 +3,7 @@ import { toast } from "svelte-sonner";
|
|
|
3
3
|
import { Icon } from "./index.js";
|
|
4
4
|
export let value;
|
|
5
5
|
export let title;
|
|
6
|
-
export let
|
|
6
|
+
export let icon = mdiClipboardTextOutline;
|
|
7
7
|
export let successMessage = "Copied";
|
|
8
8
|
function handleClick() {
|
|
9
9
|
navigator.clipboard.writeText(value).then(() => {
|
|
@@ -15,5 +15,5 @@ function handleClick() {
|
|
|
15
15
|
</script>
|
|
16
16
|
|
|
17
17
|
<button on:click|preventDefault={handleClick} class="btn btn-square btn-ghost btn-sm">
|
|
18
|
-
<Icon {
|
|
18
|
+
<Icon path={icon} {title} size={22} />
|
|
19
19
|
</button>
|