2.0.0 • Published 7 months ago
@svelte-put/lockscroll v2.0.0
@svelte-put/lockscroll
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
7 months ago
2.0.0-next.4
9 months ago
2.0.0-next.2
11 months ago
2.0.0-next.3
10 months ago
2.0.0-next.0
11 months ago
2.0.0-next.1
11 months ago
1.0.2
12 months ago
1.0.1
2 years ago
1.0.0
2 years ago