carbon-components-svelte/tests/Breakpoint.test.svelte
Eric Liu f31ab25e0a
Breakpoint (#733)
* 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]
2021-07-07 12:40:06 -07:00

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>