1.0.1 • Published 1 year ago

modal-md-reactjs v1.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

How to install ?

npm i modal-md-reactjs

How to use ?

  1. Import the plugin in your project like this :
import Modal from "modal-md-reactjs";
  1. The state :
const [displayModal, setDisplayModal] = useState(false);
  1. In the return :
<Modal key={modalReset} id="modal-created" showModal={displayModal} closeModal={() => setDisplayModal(false)} parameter={modalParameter} message="Employee Created !" />

Personalize

  1. Put this into your component :
const modalParameter = {
	"backgroundColor": "#EEEEEE",   
	"borderRadius": 10,
	"boxShadow": "0 0 5px #1B1919",
	"color": "#1B1919",
	"fontSize": 18,
	"height": "fit-content",
	"padding": "20px 50px",
	"width": "fit-content"
}
1.0.1

1 year ago