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

modal-by-tamagoultanouar

v1.1.1

Published

A simple, reusable modal component for React applications.

Readme

Modal-by-Tamagoult-Anouar

Modal-by-Tamagoult-Anouar est une bibliothèque React simple et personnalisable pour afficher des modales dans vos projets. Elle prend en charge des sections personnalisables pour le contenu, l'en-tête et le pied de page.

🚀 Installation

Installez la bibliothèque avec npm :

npm install modal-by-tamagoultanouar

✨ Fonctionnalités

  • Facile à utiliser et à personnaliser
  • Gestion du clic extérieur pour fermer la modale
  • Prend en charge les sections header, body, et footer
  • Design par défaut avec possibilité de personnalisation via CSS

📦 Utilisation

Voici un exemple simple pour intégrer Modal-by-Tamagoult-Anouar dans votre projet React :

import React from 'react';
import Modal from 'modal-by-tamagoultanouar';
import 'modal-by-tamagoultanouar/modal.css';

const App = () => {
  const closeModal = () => {
    console.log('Modal closed');
  };

  return (
    <div>
      <Modal
        header="Success!"
        body={<p>Employee has been successfully added.</p>}
        footer={<button onClick={closeModal}>Close</button>}
      >
      </Modal>
    </div>
  );
};

export default App;

🛠️ Propriétés

| Prop | Type | Requis | Description | |---------------|-------------|--------|---------------------------------------------------------------| | header | React.Node | Non | Contenu de l'en-tête de la modale | | body | React.Node | Oui | Contenu principal de la modale | | footer | React.Node | Non | Contenu du pied de page de la modale | | isOpen | React.bool | Non | Etat de la modale fermer ou ouverte |

🎨 Personnalisation

Vous pouvez personnaliser le style de la modale en modifiant ou en surchargeant le fichier CSS par défaut : modal.css.

Classes principales personnalisables

  • .modal : Style général de la modale
  • .modal-visible : Style appliqué lorsque la modale est ouverte
  • .modal-content : Conteneur principal du contenu
  • .modal-header : En-tête de la modale
  • .modal-body : Corps de la modale
  • .modal-footer : Pied de page de la modale
  • .close-button : Bouton de fermeture

Exemple de personnalisation

.modal {
  background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
  background-color: #fff;
  border-radius: 10px;
  padding: 20px;
}

.close-button {
  color: red;
}

❤️ Remerciements

Merci d'utiliser Modal-by-Tamagoult-Anouar ! Si vous avez des questions ou des retours, n'hésitez pas à me contacter.

📄 Licence

Ce projet est sous licence MIT.