mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11:05 +00:00
* chore(deps): remove clipboard-copy * feat: add copy prop, use navigator.clipboard API * docs: add clipboard-copy back to docsite for more browser support * docs(component-api): use outbound link * docs: add override/prevent copy examples
11 lines
178 B
Svelte
11 lines
178 B
Svelte
<script lang="ts">
|
|
import { CopyButton } from "../types";
|
|
</script>
|
|
|
|
<CopyButton
|
|
text="text"
|
|
on:click
|
|
on:copy
|
|
copy="{(text) => {}}"
|
|
feedback="Copied to clipboard"
|
|
/>
|