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 🙏

© 2025 – Pkg Stats / Ryan Hefner

react-progress-indicator-component

v1.0.0

Published

A customizable reading progress indicator for React applications

Readme

React Reading Progress Bar

A customizable reading progress indicator for React applications that shows how far the user has scrolled down the page.

React Rollup TypeScript Jest

Features

  • Shows a horizontal progress bar that fills as the user scrolls down the page
  • Supports custom colors, gradients, and glow effects
  • Can be positioned at the top or bottom of the viewport
  • Appears/disappears based on scroll position
  • Fully customizable with various props
  • Lightweight with no dependencies

Installation

npm install react-reading-progress-bar
# or
yarn add react-reading-progress-bar

Usage

import { ReadingProgressBar } from 'react-reading-progress-bar'

// Basic usage
function MyComponent() {
	return (
		<div>
			<ReadingProgressBar />
			{/* Your content */}
		</div>
	)
}

// Custom styling
function MyCustomComponent() {
	return (
		<div>
			<ReadingProgressBar
				color='#FF5500'
				height={5}
				useGradient={true}
				useGlow={true}
				position='top'
				zIndex={50}
			/>
			{/* Your content */}
		</div>
	)
}

Props

| Prop | Type | Default | Description | | ------------------ | ----------------- | ----------------------------- | ------------------------------------------------------------------- | | color | string | '#FFDD00' | Base color for the progress bar | | height | number | 3 | Height of the progress bar in pixels | | className | string | '' | Additional CSS classes | | useGradient | boolean | true | Whether to use a gradient effect | | useGlow | boolean | true | Whether to use a glow effect | | gradientColors | string[] | [color, '#FFA500', '#FF8C00'] | Custom gradient colors | | glowIntensity | number | 0.7 | Intensity of the glow effect (0-1) | | showAfterScroll | number | 100 | Minimum scroll position (in pixels) before showing the progress bar | | position | 'top' | 'bottom' | 'top' | Position of the progress bar | | zIndex | number | 40 | Z-index of the progress bar | | initiallyVisible | boolean | false | Whether to show the progress bar initially | | style | CSSProperties | {} | Custom styles to apply to the progress bar |

Examples

Custom Gradient

<ReadingProgressBar
	useGradient={true}
	gradientColors={['#3498db', '#2ecc71', '#f1c40f']}
	height={4}
/>

Bottom Positioned

<ReadingProgressBar position='bottom' color='#9b59b6' height={3} />

No Effects

<ReadingProgressBar useGradient={false} useGlow={false} color='#e74c3c' />

Integration with Navbar

// Inside your Navbar component
{
	shouldShowProgressBar && (
		<ReadingProgressBar height={4} color='#FFDD00' style={{ top: '56px' }} />
	)
}

Customizing CSS

The component uses CSS variables that can be overridden in your global CSS:

.reading-progress {
	--progress-color: #ffdd00;
	--progress-gradient: linear-gradient(90deg, #ffdd00, #ffa500, #ff8c00);
	--progress-glow: 0 0 10px rgba(255, 221, 0, 0.7);
}

License

MIT