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

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

Changelog

buy vnphanquang a coffee

Package Sidebar

Install

npm i @svelte-put/resize

Weekly Downloads

74

Version

3.0.0

License

MIT

Unpacked Size

12.4 kB

Total Files

8

Last publish

Collaborators

  • vnphanquang