2.0.0 • Published 2 years ago

@svelte-put/lockscroll v2.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years 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

2 years ago

2.0.0-next.4

2 years ago

2.0.0-next.2

2 years ago

2.0.0-next.3

2 years ago

2.0.0-next.0

2 years ago

2.0.0-next.1

2 years ago

1.0.2

2 years ago

1.0.1

3 years ago

1.0.0

3 years ago