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

react-interactive-progress-bar

v2.0.0

Published

NPM package React component for an interactive progress bar

Readme

React-Interactive-Progress-Bar

Overview

React Interactive Progress Bar

A simple React component for creating a simple customizable interactive progress bar. Use cases:

  • Keep track of progress for different elements in segments
  • Interactive widget for selecting values in customizable segments
  • Health Bar! Progress Bar! Resource Bar!

How to Use

install npm package

npm install react-interactive-progress-bar

Put it into your project

No props passed

<ProgressBar />:
Alt text

{primaryColor, secondaryColor, tertiaryColor} props passed (strings)

  • primaryColor for fill color

  • secondaryColor for negative fill color

  • tertiaryColor for border, notches, outline, edit arrow colors

    <ProgressBar primaryColor="#cb362b" secondaryColor="#2e7858" tertiaryColor="#112142" />

    Alt text

{segments} props passed to define number of sections

<ProgressBar primaryColor="#cb362b" secondaryColor="#2e7858" tertiaryColor="#112142" segments={10} />

Alt text

{edit} props passed to toggle user interactivity / disable

<ProgressBar primaryColor="#cb362b" secondaryColor="#2e7858" tertiaryColor="#112142" segments={10} edit={false} />

Alt text

{fill, width} props passed to predefine # segments filled and width of bar

<ProgressBar primaryColor="#cb362b" secondaryColor="#2e7858" tertiaryColor="#112142" segments={10} edit={true} fill={fillState} width={"50rem"} />

Alt text

{stateHandler} props passed to custom define a state function with the current fill value passed as an argument

Alt text

Props

All props are optional

segments?: number
fill?: number
primaryColor?: string
secondaryColor?: string
tertiaryColor?: string
edit?: boolean
width?: string
  • primaryColor - fill color
  • secondaryColor - negative fill color
  • tertiaryColor - border, notch, edit arrow color
  • segments - number of segments on progress bar
  • edit - toggle interactivity of progress bar
  • fill - initial fill value of progress bar
  • width - width of progress bar
  • stateHandler - function that accepts current fill value as argument

How to Develop

Code courtesy of npm react package template

To compile your code once, run

  • npm run build.

To compile your code once and refresh on file change, run

  • npm run start.

To publish your package to npm, make sure you're logged in the correct account by running

  • npm login.

Compile your package by running

  • npm run build

Update the package version accordingly by using

Then publish your package by running

  • npm publish

Release Notes

v2.0.0 Second Release:

  • Remove unused code, clean up code, standardize code and styling
  • Fix independent tracker functionality
  • Make design responsive and redesign component!
  • Fix custom color importing
  • Fix props and width styling

v1.0.0 Initial Release:

  • Code taken and refactored to run independent from the Commission Tracker project
  • First release to NPM!