"use strict";

require("./demo8.css");

var _ = _interopRequireDefault(require(".."));

var _react = _interopRequireDefault(require("react"));

var _reactDom = _interopRequireDefault(require("react-dom"));

var _2 = require("../..");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

var Popup = _["default"].Popup;

_reactDom["default"].render( /*#__PURE__*/_react["default"].createElement("div", {
  className: "scroll-container"
}, /*#__PURE__*/_react["default"].createElement(Popup, {
  trigger: /*#__PURE__*/_react["default"].createElement(_2.Button, null, "Open"),
  triggerType: "click",
  container: function container(trigger) {
    return trigger.parentNode;
  }
}, /*#__PURE__*/_react["default"].createElement("div", {
  className: "overlay-demo"
}, "Hello World From Popup!")), /*#__PURE__*/_react["default"].createElement("div", {
  style: {
    height: '300px'
  }
})), document.getElementById('overlay-demo-8'));