mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 10:21: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
9 lines
209 B
Svelte
9 lines
209 B
Svelte
<script>
|
|
import copy from "clipboard-copy";
|
|
import { CodeSnippet } from "carbon-components-svelte";
|
|
</script>
|
|
|
|
<CodeSnippet
|
|
code="yarn add -D carbon-components-svelte"
|
|
copy="{(text) => copy(text)}"
|
|
/>
|