mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11:05 +00:00
17 lines
596 B
Text
17 lines
596 B
Text
---
|
|
layout: recipe
|
|
---
|
|
|
|
<script>
|
|
import Preview from "../../components/Preview.svelte";
|
|
</script>
|
|
|
|
The [CodeSnippet](/components/CodeSnippet) and [CopyButton](/components/CopyButton) components do not include logic to copy the supplied `code` text.
|
|
|
|
You can use a third party open source module like [clipboard-copy](https://www.npmjs.com/package/clipboard-copy) that is compatible with modern web browsers.
|
|
|
|
## clipboard-copy
|
|
|
|
This documentation website uses [clipboard-copy](https://www.npmjs.com/package/clipboard-copy).
|
|
|
|
<FileSource src="/framed/CopyableCodeSnippet/CopyableCodeSnippet" />
|