@svelte-put/resize
TypeScript icon, indicating that this package has built-in type declarations

4.0.0 • Public • Published

@svelte-put/resize

npm.badge bundlephobia.badge docs.badge

Svelte action use:resize wrapper for ResizeObserver.

svelte-put

This package is part of the @svelte-put family. For contributing guideline and more, refer to its readme.

Usage & Documentation

See the dedicated documentation page here.

Quick Start

<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}" />

/@svelte-put/resize/

    Package Sidebar

    Install

    npm i @svelte-put/resize

    Weekly Downloads

    284

    Version

    4.0.0

    License

    MIT

    Unpacked Size

    12.5 kB

    Total Files

    9

    Last publish

    Collaborators

    • vnphanquang