mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 18:31:06 +00:00
* chore(deps-dev): upgrade svelte to v0.8.1 * chore: regenerate types to correctly type function declarations * test: fix svelte-check warnings
16 lines
305 B
Svelte
16 lines
305 B
Svelte
<script lang="ts">
|
|
import { Breakpoint } from "../types";
|
|
import { BreakpointSize } from "../types/Breakpoint/Breakpoint";
|
|
|
|
let size: BreakpointSize;
|
|
</script>
|
|
|
|
<Breakpoint
|
|
bind:size
|
|
let:size="{currentSize}"
|
|
on:match="{(e) => {
|
|
console.log(e.detail);
|
|
}}"
|
|
>
|
|
{currentSize}
|
|
</Breakpoint>
|