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-step-guide

v1.0.1

Published

<h1>React-Step-Guide</h1>

Readme

The React-Step-Guide component is a guided tour overlay for web applications, helping users navigate through specific features or elements on a page. It highlights elements in a sequence and displays an informational popup with navigation controls.

Features

  1. Automatically highlights elements specified in the steps.

  2. Displays a popup with customizable content for each step.

  3. Smooth scrolling to bring elements into view.

  4. Calculates optimal popup positioning dynamically.

  5. Provides controls for navigation (Next, Previous, Skip).

  6. Handles edge cases for limited screen space.

Installation

npm install React-Step-Guide or yarn add React-Step-Guide

Prerequisite

Ensure you have a React application set up.You can use create-react-app or any other React setup.

Add the Component

Copy the TourGuide.tsx file into your project’s components folder.

Install the necessary dependencies (if not already installed):

npm install react

Usage

import TourGuide in yourProject and with step array and flag.

This package provides a React-tourGuide hook that you can use to track the tour's dynamically of your website.

import { TourGuide } from "./components/TourGuide"

<TourGuide
        steps={steps}
        isTourActive={isTourActive}
        onClose={() => setIsTourActive(false)}
      />

Example

import React, { useState } from "react";
import { TourGuide } from "./components/TourGuide"; //Tour Guide Component Will import
import "./components/TourGuide.css";

import React, { useState } from "react";
import { TourGuide } from "./components/TourGuide";
import "./components/TourGuide.css";

const App = () => {
  const [isTourActive, setIsTourActive] = useState(false);

  const steps = [
    { id: "step1", content: "This is step 1." },
    { id: "step2", content: "This is step 2." },
    { id: "step3", content: "This is step 3." },
  ];

  return (
    <div>
      <button onClick={() => setIsTourActive(true)}>Start Tour</button>

      <div id="step1" style={{ margin: "50px", padding: "10px", border: "1px solid black" }}>
        Step 1 Element
      </div>

      <div id="step2" style={{ margin: "50px", padding: "10px", border: "1px solid black" }}>
        Step 2 Element
      </div>
      <div id="step3" style={{ margin: "50px", padding: "10px", border: "1px solid black" }}>
        Step 3 Element
      </div>

      <TourGuide
        steps={steps}
        isTourActive={isTourActive}
        onClose={() => setIsTourActive(false)}
      />
    </div>

  );
};

export default App;

API

react-step-guide()

| Key | Type | Description | |-------|--------|---------------------------| | step | Array | step array defined how much step will go. | | flag | boolean | flag will be define step show and hide. |