react-modal-lib
v0.0.0
Published
## Installation To install, you can use npm or yarn:
Downloads
3
Maintainers
Readme
react-modal-lib
Installation
To install, you can use npm or yarn:
npm install react-modal-lib --save
or
yarn add react-modal-lib
Import the modal.
import Modal from 'react-modal-lib';
Usage
<Modal open={open} onCloseClicked={toggleState} onBackDropClicked={toggleState}><h1>Pop Up</h1></Modal>
Props
open : boolean
onCloseClicked : callback function called on cross clicked
onBackDropClicked : callback function called on backdrop clicked