svelte/test/js/samples/bind-width-height/input.svelte

8 lines
119 B

<script>
export let w;
export let h;
</script>
<div bind:offsetWidth={w} bind:offsetHeight={h}>
some content
</div>