react-awesome-modal
This is a Customizable Modal.
Usage
Props
Attribute | Required | Type | description | example |
---|---|---|---|---|
visible | required | Boolean | to show or hide the dialog | false |
effect | option | String | to set how to pop-up | fadeInUp, fadeInDown, etc... |
width | option | String | to set modal width (px or %) | 500, 500px, 80% |
height | option | String | to set modal height (px or %) | 400, 400px, 50% |
onClickAway | option | Function | to set actions when the user click the mask | - |
Effect
- fadeInDown [default]
- fadeInUp
- fadeInLeft
- fadeInRight
How To Develop
Setup
$ npm install
Build
$ npm run build
Watch and auto build
$ npm run watch
Test
$ npm test
Docs
$ npm run docs