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
Copy file name to clipboardExpand all lines: src/routes/docs/components/clipboard.md
+79Lines changed: 79 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -305,6 +305,85 @@ Add a `Clipboard` to your `Textarea` using the `addon` snippet. The button appea
305
305
</Textarea>
306
306
```
307
307
308
+
## Copy contact details
309
+
This example can be used to copy the text content (ie. contact details) inside of the `<address>` field by clicking on the copy to clipboard button positioned inside of the address card.
310
+
311
+
Make sure that you set the `id` to the trigger element to specify the source of the content that is to be copied.
312
+
313
+
```svelte example class="flex justify-center items-center"
314
+
<script lang="ts">
315
+
import { Card, Clipboard, Tooltip } from "$lib";
316
+
import { CheckOutline, ClipboardCleanSolid } from "flowbite-svelte-icons";
Use this example to show an input field where you can copy the URL of the current page and also show a modal with the copied URL when the copy button is clicked.
356
+
357
+
```svelte example class="flex justify-center" hideResponsiveButtons
0 commit comments