mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11: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]
15 lines
222 B
Svelte
15 lines
222 B
Svelte
<script lang="ts">
|
|
import { Breakpoint } from "../types";
|
|
|
|
let size;
|
|
</script>
|
|
|
|
<Breakpoint
|
|
bind:size
|
|
let:size="{currentSize}"
|
|
on:match="{(e) => {
|
|
console.log(e.detail);
|
|
}}"
|
|
>
|
|
{currentSize}
|
|
</Breakpoint>
|