react-overlay
v0.1.7
Published
A React Component used to overlay content.
Downloads
180
Readme
React Overlay
A React component used to overlay content.
Deprecated Warning
0.1.7 will likely be the last release of react-overlay. Use react-overlays instead. It's awesome!
Getting Started
Install react-overlay with npm
npm install react-overlay --save
Require the Overlay component in your code
import { Overlay } from 'react-overlay';
// or
const { Overlay } = require('react-overlay');
// or
var Overlay = require('react-overlay').Overlay;
Use the overlay in your code
render() {
// ...
return (
<div>
<Overlay>
<span>I am attached to the body!</span>
</Overlay>
</div>
);
}