mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11:05 +00:00
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]
This commit is contained in:
parent
2d47bcaf1f
commit
f31ab25e0a
14 changed files with 308 additions and 5 deletions
15
tests/Breakpoint.test.svelte
Normal file
15
tests/Breakpoint.test.svelte
Normal file
|
@ -0,0 +1,15 @@
|
|||
<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>
|
Loading…
Add table
Add a link
Reference in a new issue