You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -163,20 +163,24 @@ Use this example to copy a shortened URL to the clipboard by clicking on a butto
163
163
This example can be used to copy and paste code inside a `<pre>` and `<code>` block by clicking on a button with an icon position inside the block and also show a tooltip with a message when the text has been copied.
164
164
165
165
```svelte example class="flex justify-center items-center gap-2 h-96"
166
-
<script>
167
-
import { Clipboard, Input, Label, Helper, Button } from "flowbite-svelte";
166
+
<script lang="ts">
167
+
import { Clipboard, Label, Helper } from "flowbite-svelte";
168
168
import { CheckOutline, ClipboardCleanSolid } from "flowbite-svelte-icons";
169
169
170
170
let value = $state("");
171
171
let success = $state(false);
172
172
173
-
function onclick(ev) {
174
-
value = ev.target.ownerDocument.querySelector("#code-block").innerText;
0 commit comments