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

1.0.2 • 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 lang="ts">
	import { lockscroll, createLockScrollStore } from '@svelte-put/lockscroll';

	const locked = createLockScrollStore();
	// ... later
	locked.toggle();
</script>

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

Package Sidebar

Install

npm i @svelte-put/lockscroll

Weekly Downloads

76

Version

1.0.2

License

MIT

Unpacked Size

7.28 kB

Total Files

7

Last publish

Collaborators

  • vnphanquang