mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 10:21:05 +00:00
* feat(breakpoint): add Breakpoint * docs(breakpoint): update docs * refactor(breakpoint): add prop descriptions, type slot * docs: add missing semicolon to last typedef * docs: decrease margin bottom for inline snippet * docs: add Breakpoint to new components [ci skip] * docs(config): use "scripts-markup-styles" for svelteSortOrder [ci skip] * docs(breakpoint): label on:match event [ci skip]
16 lines
301 B
Svelte
16 lines
301 B
Svelte
<script>
|
|
export let code = "";
|
|
|
|
import copy from "clipboard-copy";
|
|
import { CodeSnippet } from "carbon-components-svelte";
|
|
</script>
|
|
|
|
<div>
|
|
<CodeSnippet code="{code}" type="inline" copy="{(text) => copy(text)}" />
|
|
</div>
|
|
|
|
<style>
|
|
div {
|
|
margin-bottom: var(--cds-spacing-03);
|
|
}
|
|
</style>
|