This package is part of the @svelte-put family. For contributing guideline and more, refer to its readme.
See the dedicated documentation page here.
<script lang="ts">
import { resize } from '@svelte-put/resize';
import type { ResizeDetail } from '@svelte-put/resize';
function onResized(e: CustomEvent<ResizeDetail>) {
console.log(e.detail);
}
</script>
<div use:resize on:resized="{onResized}" />