Skip to content

Latest commit

 

History

History
39 lines (30 loc) · 815 Bytes

README.md

File metadata and controls

39 lines (30 loc) · 815 Bytes

React Overlay npm version

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>
  );
}