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

2.0.0 • Public • Published

@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>

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
2.0.0
14latest
2.0.0-next.4
0next

Version History

VersionDownloads (Last 7 Days)Published
2.0.0
14
2.0.0-next.4
0
2.0.0-next.30
2.0.0-next.20
2.0.0-next.10
2.0.0-next.00
1.0.225
1.0.141
1.0.01

Package Sidebar

Install

npm i @svelte-put/lockscroll

Weekly Downloads

81

Version

2.0.0

License

MIT

Unpacked Size

6.81 kB

Total Files

9

Last publish

Collaborators

  • vnphanquang