mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
* chore(deps-dev): upgrade svelte to v0.8.1 * chore: regenerate types to correctly type function declarations * test: fix svelte-check warnings
11 lines
180 B
Svelte
11 lines
180 B
Svelte
<script lang="ts">
|
|
import { CopyButton } from "../types";
|
|
</script>
|
|
|
|
<CopyButton
|
|
text="text"
|
|
on:click
|
|
on:copy
|
|
copy="{(text) => text}"
|
|
feedback="Copied to clipboard"
|
|
/>
|