3.0.1 • Published 4 days ago

@svelte-put/resize v3.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
4 days ago

@svelte-put/resize

npm.badge bundlephobia.badge docs.badge

Svelte action use:resize for pointer drag-to-scroll behavior

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