Adman-modal is a npm package that provides a simple and customizable modal component for your React applications. This package allows you to easily display a modal with a clean and user-friendly design, making it suitable for various use cases, such as displaying success messages, alerts, or any other type of informative content.
This modal was created in particular for project 14 of openclassrooms (hr-net).
You can see what this modal looks like here: https://hr-net-adman.netlify.app/
You can install adman-modal using npm:
npm install adman-modal
Then too use the adman-modal component in your React application, follow these steps:
Import the Modal component:
import { Modal } from 'adman-modal';
Import the Modal component in your app, for exemple :
<Modal title="Employee created" text="Nice ! Your employee has been successfully created 👌" closeModal={closeModal} />
You can add props into the adman-modal component :
- title("string")
- text("string")
- closeModal(function)