svelte/test/runtime/samples/window-binding-resize/main-v2.html

3 lines
95 B

<svelte:window bind:innerWidth='width' bind:innerHeight='height'/>
<div>{width}x{height}</div>