2.0.0 • Published 8 months ago

@svelte-put/lockscroll v2.0.0

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

@svelte-put/lockscroll

npm.badge bundlephobia.badge docs.badge repl.badge

Svelte action use:lockscroll - locking scroll within an HTML element

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>
  import { lockscroll } from '@svelte-put/lockscroll';

  let locked = $state(false);
</script>

<svelte:body use:lockscroll={locked} />

<button onclick={() => locked = !locked}>Toggle lock scroll on body</button>

Changelog

2.0.0

8 months ago

2.0.0-next.4

11 months ago

2.0.0-next.2

1 year ago

2.0.0-next.3

12 months ago

2.0.0-next.0

1 year ago

2.0.0-next.1

1 year ago

1.0.2

1 year ago

1.0.1

2 years ago

1.0.0

2 years ago