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-overlay-essentials

v2.1.5

Published

Eine kleine Ansammlung an praktischen Tools, die out of the Box genutzt werden können. Alle enthaltenen Overlays können als Reaktion auf etwas geöffnet werden und schließen sich danach automatisch. Es beinhaltet: - [ConfirmationBox]: Ein Overlay mit ein

Readme

react-overlay-essentials

EN:

A small collection of useful tools, which can be used out of the box. All included overlays can be opened as reaction on something by calling the appropriate setState hooks, after interaction they close automatically.

  • [ConfirmationBox]: An Overlay with a ConfirmationBox (Proceed / Cancel),
  • [InfoOverlay]: A simpel Overlay with an Informationbox, which can be confirmed,
  • [InfoOverlayWithInput]: An Overlay with an input field that the user can put information into,
  • [LoadingOverlay]: A simple Overlay with a loading-animation and optional loading text,
  • [MultipleChoiceOverlay]: A simple Overlay with multiple-choice options for the user to choose from,
  • [MultipleRadioOverlay]: A simple Overlay with radio buttons for the user to choose exactly one,
  • [TutorialOverlay]: A simple Overlay for step by step tutorials or guided tours in which for each step a highlighted element and commands can be defined which are executed when entering the step (e.g. for switching between views),
  • [Toast]: A simple Toast that appears on the screen in green on the top right,
  • [ToggleSwitch]: A choice between two options in the appearence (Option 1 | Option 2),
  • [Dropdown]: A simplified Dropdown-menu (on the basis of react-select), a little simpler to configure and has some default-configurations,
  • [InputFilter]: A Tool which can be used to apply a Regex-Filter on an Inputfield to only allow specific user inputs.

DE:

Eine kleine Ansammlung an praktischen Tools, die out of the Box genutzt werden können. Alle enthaltenen Overlays können als Reaktion auf etwas geöffnet werden und schließen sich danach automatisch. Es beinhaltet:

  • [ConfirmationBox]: Ein Overlay mit einer ConfirmationBox (Fortfahren / Abbrechen),
  • [InfoOverlay]: ein simples Overlay mit einer Informationsbox die man bestätigen kann,
  • [InfoOverlayWithInput]: Ein Overlay bei dem ein User zusätzlich ein Freitext-Feld zur Eingabe hat,
  • [LoadingOverlay]: Ein simples Overlay mit einer Lade-animation und optionalem Ladetext,
  • [MultipleChoiceOverlay]: Ein simples Overlay bei dem ein Nutzer aus mehreren gegebenen Aktionen auswählen kann,
  • [MultipleRadioOverlay]: Ein simples Overlay bei dem ein Nutzer genau eine aus mehreren gegebenen Aktionen auswählen kann,
  • [TutorialOverlay]: Ein simples Overlay für step-by-step Tutorials oder Guided Tours bei denen in jedem Schritt ein Element hervorgehoben werden kann und Commands übergeben werden können, die beim betreten des Schritts ausgeführt werden (z.B. um zwischen Sichten zu wechseln),
  • [Toast]: Ein simpler Toast der für kurze Zeit grün hinterlegt in der oberen rechten Ecke des Bildschirms angezeigt wird,
  • [ToggleSwitch]: Eine Auswahl aus zwei Optionen aus denen ein Nutzer wählen kann in der Darstellung (Option 1 | Option 2),
  • [Dropdown]: Ein simples Dropdown-Menü (auf Basis von react-select), welches einfacherer zu Konfigurieren ist und einige default-Einstellungen hat,
  • [InputFilter]: Ein Tool was genutzt werden kann um auf einem Inputfeld einen Regex-Filter anzuwenden und dem User so nur Eingaben erlaubt die dem Filter entsprechen.

Examples:

{ import { useState } from "react"; import { ConfirmationBox } from 'react-overlay-essentials'; ...

function App(...) {
    ...
    const [stateConfirmationBox, setStateConfirmationBox] = useState(null);
    ...
    function handleLicenseAgreement() {

    }
    ...
    return <div id="root">
        <ConfirmationBox state={stateConfirmationBox} setState={setStateConfirmationBox} />
        ...
        <button onClick={() => {
            setStateConfirmationBox({
                headline: "Are you sure?",
                message: "Do you want to accept the License agreement?",
                proceedButtonText: "Agree",
                cancelButtonText: "Decline",
                handlerOk: handleLicenseAgreement
            })
        }}>
            Confirm License
        </button>
    </div>;
}

}