1.0.14 • Published 4 years ago
react-barebones-modal v1.0.14
Description
A simple react package that is a barebones out of the box modal.
Usage
const [showModal, setShowModal] = useState(false);
const modalClickHandler = e => console.log(e);
<Modal
customClassName={`w80% mawa bgc-t t50 posa ofh`}
show={showModal}
childClickHandler={modalClickHandler} // not required
handleClose={() => setShowModal(false)}>
<h1> Hi! </hi>
<div onClick={}> Close Me </div>
</Modal>