How to use the react-overlays/lib/Position.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 instructure / instructure-ui / lib / util / Overlay.js View on Github external
import React, { Component, PropTypes } from 'react'
import RootCloseWrapper from './RootCloseWrapper'
import Portal from 'react-overlays/lib/Portal'
import Position from 'react-overlays/lib/Position'
import Transition from '../components/Transition'
import ScreenReaderContent from '../components/ScreenReaderContent'

export default class Overlay extends Component {

  static propTypes = {
    ...Portal.propTypes,
    ...Position.propTypes,

    /**
     * Set the visibility of the Overlay
     */
    show: PropTypes.bool,
    /**
     * Specify whether the overlay should trigger `onHide` when the user clicks outside the Overlay
     */
    rootClose: PropTypes.bool,

    /**
     * Specify whether the overlay should render offscreen (visible to screen readers) when not shown
     */
    renderOffscreen: PropTypes.bool,

    /**