0.1.2 • Published 8 months ago

@dakusy/modal_npm v0.1.2

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

Installation

npm i @dakusy/modal_npm

Dependency

npm install to get all the dependency

Modal npm component

function Modal({ closeModal }) {
    return (
        // class allowing to show the modal or to not show it.
        <div className={closeModal ? "modal_container" : "modal_display"}>
            <div className="modal_show">
                <p>Votre Employée a été enregistré.</p>
                {/* The click event allow us to change the current state of the modal to false or true to allow it to be closed.*/}
                <div className="close_modal">
                    <p onClick={() => closeModal(false)}>X</p>
                </div>
            </div>
        </div>
    );
}

export default Modal;
0.1.2

8 months ago

0.1.1

8 months ago

0.1.0

8 months ago