1.1.2 • Published 8 months ago

ael-modal v1.1.2

Weekly downloads
-
License
-
Repository
github
Last release
8 months ago

About The Project

HRNet project which aims to be able to add new employees to a sortable table.

Built With

React

Getting Started

This is an example of how you may give instructions on setting up your project locally. To get a local copy up and running follow these simple example steps.

Prerequisites

This is an example of how to list things you need to use the software and how to install them.

  • npm
    npm install npm@latest -g

Installation

Below is an example of how you can instruct your audience on installing and setting up your app. This template doesn't rely on any external dependencies or services.

  1. install
    npm install ael-modal
  2. Install packages
    npm install sass

Example

import React, { useState } from "react"; // Assurez-vous d'importer React également
import Modal from "ael-modal";

const Example = () => {
  const [modalIsDisplayed, setModalIsDisplayed] = useState(false);

  const handleSubmit = e => {
    e.preventDefault();
    setModalIsDisplayed(true);
  };

  const onCloseModal = () => {
    setModalIsDisplayed(false);
  };

  return (
    <section className="container">
      <h1 className="title">Modal Exemple</h1>
      <form onSubmit={handleSubmit}>
        <button type="submit">Click me</button>

      </form>
      <Modal
        isDisplayed={modalIsDisplayed}
        onCloseModal={onCloseModal}
        content={
          <div className="modal">
            <p>Message de la modal</p> 
            {/* <div onClick={onCloseModal} className="custom-modal-btn-close">
              Fermer
            </div> */}
          </div>
        }
      />
    </section>
  );
};

export default Example;

License

Distributed under the MIT License. See LICENSE.txt for more information.

LINK

Project Link: [https://www.npmjs.com/package/ael-modal)

1.1.2

8 months ago

1.1.1

8 months ago

1.1.0

8 months ago

1.0.5

8 months ago

1.0.4

8 months ago

1.0.3

8 months ago

1.0.2

8 months ago

1.0.1

8 months ago

1.0.0

8 months ago

0.9.8

8 months ago

0.9.7

8 months ago

0.9.6

8 months ago

0.9.5

8 months ago

0.9.4

8 months ago

0.9.3

8 months ago

0.9.2

8 months ago

0.9.1

8 months ago

0.9.0

8 months ago

0.8.0

9 months ago

0.7.0

9 months ago

0.6.0

9 months ago

0.5.0

9 months ago

0.4.0

9 months ago

0.3.0

9 months ago

0.2.0

9 months ago

0.1.0

9 months ago