mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-17 03:01:25 +00:00
15 lines
455 B
Text
15 lines
455 B
Text
---
|
|
layout: recipe
|
|
---
|
|
|
|
<script>
|
|
import Preview from "../../components/Preview.svelte";
|
|
</script>
|
|
|
|
The [CodeSnippet](/components/CodeSnippet) and [CopyButton](/components/CopyButton) do not include logic to copy the supplied `code` text.
|
|
|
|
## clipboard-copy
|
|
|
|
This example uses [clipboard-copy](https://www.npmjs.com/package/clipboard-copy), a lightweight module designed for the web.
|
|
|
|
<FileSource src="/framed/CopyableCodeSnippet/CopyableCodeSnippet" />
|