@jc-u/modal
v0.2.0
Published
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
Downloads
14
Maintainers
Readme
Simple Modal Component
Project's goal
This project is a simple modal component published as a library in npm.
Project's tech
React 18.2.0 node-sass 7.0.1 fontawesome dependencies 6.2.0 https://fontawesome.com/v6/docs/web/use-with/react/
Project's Installation
Required: Node 14.17.6 npm 7.5.2
Installation
npm install @jc-u/modal
Usage
where you want to use the component:
import Modal from @jc-u/modal
in the index.scss:
@import "../../node_modules/@jc-u/modal/src/styles/modal";
Modal appearance
<Modal setModalShowed={setModalShowed} message="Hello" />
setModalShowed and message props is necessary to know if the modal should be displayed.
credits
Autor: Jean-Christophe Urbain