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

@akshay641/react-step-progress-bar

v0.1.6

Published

A customizable React stepper progress component.

Readme

React Step Progress Bar

A customizable stepper progress component for React. This lightweight component displays a multi-step progress bar that can be easily integrated into any React application, making it perfect for forms, wizards, or onboarding flows.

Features

  • Customizable: Easily configure the total number of steps, the current active step, colors, dimensions, and more.
  • Responsive: Automatically adjusts to the container size.
  • Lightweight: Minimal dependencies and a simple API for quick integration.
  • Easy to Use: Plug and play with a clear and intuitive interface.

Installation

Install the package via npm:

npm install @akshay641/react-step-progress-bar

After installing, import and use the component in your React application:

Screenshot Description

Usage

After installing, import and use the component in your React application:

import Stepper from "@akshay641/react-step-progress-bar";

const App = () => {
  const totalSteps = 4;
  const [currentStep, setCurrentStep] = useState(0);

  const handleNext = () => {
    if (currentStep < totalSteps - 1) {
      setCurrentStep(currentStep + 1);
    } else {
      // Handle final step (e.g., submission)
      console.log("All steps completed!");
    }
  };

  const handleBack = () => {
    if (currentStep > 0) {
      setCurrentStep(currentStep - 1);
    }
  };

  return (
    <div>
      <Stepper totalSteps={totalSteps} currentStep={currentStep} />
      <div style={{ marginTop: "20px" }}>
        <button onClick={handleBack} disabled={currentStep === 0}>
          Back
        </button>
        <button onClick={handleNext}>Next</button>
      </div>
    </div>
  );
};

export default App;

Props

| Prop | Type | Default | Description | |--------------|--------|------------|----------------------------------------------------| | totalSteps | number | Required | Total number of steps in the progress bar. | | currentStep | number | Required | The index of the current active step (zero-based). | | activeColor | string | #0E66CE | Background color for completed or active steps. | | inactiveColor| string | gray | Background color for pending or inactive steps. | | height | string | 4px | Height of each progress segment. | | margin | string | 0 0.5rem | Margin around each segment. | | borderRadius | string | 9px | Border radius for the progress segments. | | className | string | "" | Additional CSS classes for the container. |

Customization You can tailor the component's look and feel by adjusting the props. For example:

<Stepper
  totalSteps={4}
  currentStep={2}
  activeColor="#28a745"       // Active steps will be green.
  inactiveColor="#e0e0e0"     // Inactive steps will be light gray.
  height="6px"
  margin="0 0.3rem"
  borderRadius="3px"
/>