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

1.0.1 • 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}" />

Changelog

buy vnphanquang a coffee

Package Sidebar

Install

npm i @svelte-put/lockscroll

Weekly Downloads

115

Version

1.0.1

License

MIT

Unpacked Size

9.04 kB

Total Files

8

Last publish

Collaborators

  • vnphanquang