How to use the react-overlays/lib/Overlay.propTypes function in react-overlays

To help you get started, we’ve selected a few react-overlays examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github zanata / zanata-platform / frontend / src / main / web / src / components / Overlay / index.jsx View on Github external
? children
    : cloneElement(children, {
      className: 'Op(1) ' + children.props.className
    })
  return (
    
      {child}
    
  )
}

Overlay.propTypes = {
  ...BaseOverlay.propTypes,
  children: PropTypes.node,
  /**
   * A react-overlays/lib/Transition component to use for
   * the dialog and backdrop components.
   * See http://react-bootstrap.github.io/react-overlays/examples/#transition
   * for documentation.
   */
  transition: PropTypes.element,
  /**
   * Set the visibility of the Overlay
   */
  show: PropTypes.bool,
  /**
   * Specify whether the overlay should trigger
   * onHide when the user clicks outside the overlay
   */
github forestturner / PokerHandRangeCalc / node_modules / react-bootstrap / es / Overlay.js View on Github external
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/inherits';
import _extends from 'babel-runtime/helpers/extends';
import classNames from 'classnames';
import React, { cloneElement } from 'react';
import BaseOverlay from 'react-overlays/lib/Overlay';
import elementType from 'react-prop-types/lib/elementType';

import Fade from './Fade';

var propTypes = _extends({}, BaseOverlay.propTypes, {

  /**
   * Set the visibility of the Overlay
   */
  show: React.PropTypes.bool,
  /**
   * Specify whether the overlay should trigger onHide when the user clicks outside the overlay
   */
  rootClose: React.PropTypes.bool,
  /**
   * A callback invoked by the overlay when it wishes to be hidden. Required if
   * `rootClose` is specified.
   */
  onHide: React.PropTypes.func,

  /**