Overlay and Popup components for React. Brought to you by Taskworld Inc.
const { Overlay, Popup } = require('react-overlay-popup');
See: src/App.js for example.
Anything inside <Overlay></Overlay>
will be added to a separate DOM tree appended to document.body
.
Just that.
A special kind of Overlay that automatically positions itself relative to its parent.
The position is specified through the strategy
prop.
The gap
prop specifies how far should the popup be to its parent.
You will need the following things properly installed on your computer.
git clone <repository-url>
this repository- change into the new directory
npm install
nwb serve
will run the component's demo app- Visit the demo at http://localhost:3000
nwb test
will run the tests oncenwb test --server
will run the tests on every change
nwb build