npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

mooner00

v1.0.0

Published

A scrollbar React Component that divide the scrollbar for whole page into some small pages

Readme

Scrollbar-React-Component

Scrollbar-track is a React Componet can help you create a scrollbar which can track specific class, or just divide the scrollbar into some small ones. Scrollbar have a 'onPageChange' event to help watch the page change. User can custom the function when scrollbar rich the end.

Before Use:

import {Scrollbar, Thumb} from './scrollbar/ScrollbarApp' import styles from './scrollbar.css' style-loader and css-loadedr are necessary. jQuery is necessary

How to Use:

<Scrollbar/> or

<Scrollbar>
  <Thumb/>
  <Thumb>
<Scrollbar>

property for Scrollbar:

1. pageNum: Number.

Defined how many thumbs on Scrollbar. eg: <Scrollbar pageNum = "4"/>

2. traceClass: String.

Define the class name the thumb should bind. eg: <Scrollbar traceClass = ".pages"/>

3. onPageChange: function.

Define the function call when thumb rich the top or end. eg: <Scrollbar pageNum = "4" onPageChange= { function(){console.log("Page Change")} }/>

4. offTop/ offBottom: Number

Define the height which thumb off top/Bottom. Alert: The unit for the value is "vh". eg:<Scrollbar offTop = "2" offBottom = "4">

5. thumbHeight : Number

Define the distance between thumbs. Alert: The unit for the value is "vh". eg: <Scrollbar thumbHeight = "5">

Property for Thumb

1. scale: Number

Define the height scale for single thumb. eg. <Thumb scale = "2"/ >

Dependency:

"devDependencies": {
    "babel-core": "^6.26.3",
    "babel-loader": "^7.1.4",
    "babel-preset-env": "^1.7.0",
    "babel-preset-es2015": "^6.24.1",
    "babel-preset-react": "^6.24.1",
    "css-loader": "^0.28.11",
    "jquery": "^3.3.1",
    "react": "^16.4.1",
    "react-dom": "^16.4.1",
    "style-loader": "^0.21.0",
    "webpack": "^4.12.0",
    "webpack-command": "^0.2.1"
  }