mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 10:21:05 +00:00
14 lines
No EOL
470 B
Text
14 lines
No EOL
470 B
Text
<script>
|
|
import { CopyButton, InlineNotification } from "carbon-components-svelte";
|
|
import Preview from "../../components/Preview.svelte";
|
|
</script>
|
|
|
|
<InlineNotification svx-ignore lowContrast title="Note:" subtitle="By design, the copy button does not copy text to the clipboard. You will need to write your own logic." kind="info" hideCloseButton />
|
|
|
|
### Default
|
|
|
|
<CopyButton on:click />
|
|
|
|
### Custom feedback
|
|
|
|
<CopyButton on:click feedback="Copied to clipboard" /> |