svscroll

1.0.0 • Public • Published

Scrollbar for svelte apps

This is a simple svelte component that adds a scrollbar to the body of the page. It is useful when you want to hide the scrollbar of the body and add a custom scrollbar to the body.

Installation

npm install -D svscroll

Usage

<script>
    import Scrollbar from 'svscroll';
</script>

<Scrollbar height="100%" width="100%" zIndex={1}>
    <div>
        <h1>My custom scrollbar</h1>
        <p>This is a custom scrollbar for the body of the page</p>
    </div>
</Scrollbar>

Readme

Keywords

none

Package Sidebar

Install

npm i svscroll

Weekly Downloads

1

Version

1.0.0

License

ISC

Unpacked Size

11.5 kB

Total Files

5

Last publish

Collaborators

  • itsfuad