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

3.0.1 • Public • Published

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

Package Sidebar

Install

npm i @svelte-put/resize

Weekly Downloads

154

Version

3.0.1

License

MIT

Unpacked Size

10.8 kB

Total Files

7

Last publish

Collaborators

  • vnphanquang