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

isma-react-modal-hrnet-1

v1.0.0

Published

A simple React modal component for HRnet

Readme

HRNet React Modal

HRNet React Modal est un composant React simple, réutilisable et personnalisable pour afficher une modale dans vos applications React.


Installation

Pour installer le package via npm, exécutez la commande suivante :

npm install isma-react-modal-hrnet-1

Utilisation

Voici un exemple d'intégration basique du composant :

import React, { useState } from "react";
import MyModal from "hrnet-react-modal";

const App = () => {
  const [isOpen, setIsOpen] = useState(false);

  return (
    <div>
      <button onClick={() => setIsOpen(true)}>Open Modal</button>
      <MyModal
        isOpen={isOpen}
        onClose={() => setIsOpen(false)}
        title="Example Modal"
      >
        <p>Here is the content of the modal!</p>
      </MyModal>
    </div>
  );
};

export default App;

Props disponibles

  • isOpen : boolean (par défaut false) – Indique si la modale est visible ou non.
  • onClose : function (par défaut une fonction vide) – Fonction appelée pour fermer la modale.
  • title : string (par défaut "Modal Title") – Texte affiché dans l’en-tête de la modale.
  • children : node (par défaut null) – Contenu dynamique à afficher à l’intérieur de la modale.

Styles

Le composant inclut des styles CSS de base qui peuvent être étendus ou remplacés selon vos besoins.

Exemple de personnalisation des styles CSS :

.modal-container {
  background-color: #f5f5f5;
  border: 2px solid #333;
}

.modal-close {
  color: red;
  font-size: 24px;
}

Fonctionnalités

  1. Facile à utiliser : Configuration simple avec les props.
  2. Personnalisable : Modifiez les styles selon vos besoins.
  3. Accessibilité de base : Fermez la modale en cliquant sur l’arrière-plan ou sur le bouton de fermeture.

Compatibilité

Ce composant est compatible avec la dernière version de React et fonctionne sur tous les navigateurs.


Développement local

Si vous souhaitez modifier ou améliorer ce composant, voici comment faire :

  1. Clonez le repository :

    git clone https://github.com/IsmaSEO/isma-react-modal-hrnet-1
    cd lib
  2. Installez les dépendances :

    npm install
  3. Lancez un environnement de développement local :

    npm run dev

Build et Publication

  1. Construisez le package avec la commande :

    npm run build
  2. Publiez-le sur npm avec :

    npm login
    npm publish --access public

Contributions

Les contributions sont les bienvenues ! Si vous avez des suggestions ou détectez un problème, ouvrez une issue ou une pull request dans le repository GitHub.


Licence

Ce package est sous licence MIT. Vous êtes libre de l'utiliser et de le modifier comme bon vous semble.