mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11:05 +00:00
build(types): copy .d.ts files from src to types (#1218)
This commit is contained in:
parent
4d955900ad
commit
5209f329bd
13 changed files with 90 additions and 22 deletions
|
@ -1,10 +1,18 @@
|
|||
<script lang="ts">
|
||||
import { Breakpoint } from "../types";
|
||||
import { Breakpoint, breakpointObserver, breakpoints } from "../types";
|
||||
import type { BreakpointProps } from "../types/Breakpoint/Breakpoint.svelte";
|
||||
|
||||
let size: BreakpointProps["size"];
|
||||
|
||||
const sizeObserver = breakpointObserver();
|
||||
const smaller = sizeObserver.smallerThan("md");
|
||||
const larger = sizeObserver.largerThan("md");
|
||||
</script>
|
||||
|
||||
{smaller}
|
||||
{larger}
|
||||
{breakpoints.md}
|
||||
|
||||
<Breakpoint
|
||||
bind:size
|
||||
let:size="{currentSize}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue