A small NPM React component that shows page scroll progress in a compact doughnut tracker.
The tracker stays in the bottom-right corner and updates automatically as the user scrolls.
progress-tracker.1.mp4
npm install react-scroll-progress-trackerThe package expects the consuming app to provide matching react and react-dom versions. If your app already uses React 19, keep both packages on the same patch version.
import { ScrollIndicator } from "react-scroll-progress-tracker";
export default function App() {
return <ScrollIndicator />;
}import { ScrollIndicator } from "react-scroll-progress-tracker";
export default function App() {
return (
<ScrollIndicator
size={80}
color="#0ea5e9"
trackColor="rgba(148, 163, 184, 0.35)"
/>
);
}size: number in pixels, default96color: any valid CSS color string, default#00ff00trackColor: any valid CSS color string for the inactive ring path
sizecontrols how much space the tracker takes on the page.colorcontrols the visible progress arc.trackColorcontrols the inactive ring, which helps the progress stand out clearly.
- The component is fixed to the bottom-right corner.
- It tracks scroll position automatically.
- React is required as a peer dependency.
Make sure react and react-dom are installed at the same version in the consuming app.