New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

top-scroll-bar

Package Overview
Dependencies
Maintainers
0
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

top-scroll-bar

A simple and lightweight npm package that adds a top progress scroll bar to your website, indicating how much you have scrolled.

latest
npmnpm
Version
1.0.10
Version published
Maintainers
0
Created
Source

Top Scroll

A simple and lightweight npm package that adds a top progress scroll bar to your website, indicating how much you have scrolled.

Installation

Install the package using npm or yarn:

npm install top-scroll-bar

or

yarn add top-scroll-bar

Usage

Import and initialize the top scroll bar in your project:

import { TopScrollBar } from "top-scroll-bar";

This will display a progress bar at the top of the page that updates as the user scrolls.

Customization

You can pass options to customize the appearance of the scroll bar:

<TopScrollBar
    sx={{
    ...custom css properties
    }}
/>

Available Options

OptionTypeDefaultDescription
isRounedbooleanfalseRound edge the progress bar
originFromenum (center, left, right)centerorigin of the progress bar

Example

import { TopScrollBar } from "top-scroll-bar";

<TopScrollBar rounded style={{ zindex: -1 }}/>

License

MIT License

FAQs

Package last updated on 11 Feb 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts