4.0.0 • Published 2 months ago

@svelte-put/resize v4.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

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

Changelog

4.0.0

2 months ago

3.1.0

6 months ago

4.0.0-next.1

6 months ago

4.0.0-next.0

7 months ago

4.0.0-next.3

4 months ago

4.0.0-next.2

5 months ago

3.0.1

7 months ago

3.0.0

1 year ago

2.0.0

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago