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>

Top categories

svelte logo

Need a Svelte website built?

Hire a professional Svelte developer today.
Loading Svelte Themes