React-SkyhLight is a simple react component for modals and dialogs, powerfull, lightweight and unopinionated in or design.
npm install react-skylight
- Very simple modal/dialog
- Unopinionated in or design, (CSS is not included, only a template is suggested (see more below).
- Callback before open
- Callback after open
- Callback before close
- Callback after close
How to use
//Require react-skylightvar SkyLight = SkyLight;var App = React;React;
A title for your modal.
Show modal with an overlay (true) or without an overlay (false).
Modal With OverlayModal Without Overlay
beforeOpen, afterOpen, beforeClose and afterClose: (Function)
A callback functions to execute before and after open and before and after close a modal. You can use just the one you want.