deku-popup
Popup/modal component for deku
Install
$ npm install deku-popup
Usage
; const openPopup = { ;}; const render = <div> <Button onClick=>Open popup!</Button> <Popup open=stateopen> <h1>Hello world!</h1> </Popup> </div>; render;
API
<Popup/>
onClickOutside
Type: Function
Function to call when clicking outside the popup.
open
Type: boolean
Default: false
Whether to show the popup upon the initial render.
License
MIT © Kevin Mårtensson