How to use the react-md/lib/Helpers/Layover.defaultProps function in react-md

To help you get started, we’ve selected a few react-md 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 mlaursen / react-md / docs / src / shared / components / ReactMD / helpers / layovers / LayoverPlayground.jsx View on Github external
constructor(props) {
    super(props);

    this.state = {
      title: defaultTitle,
      text: defaultText,
      contents: 'list',
      centered: false,
      'anchor-x': Layover.defaultProps.anchor.x,
      'anchor-y': Layover.defaultProps.anchor.y,
      visible: false,
      closeOnOutsideClick: true,
      horizontal: false,
      vertical: false,
      sameWidth: false,
    };
  }
github mlaursen / react-md / docs / src / shared / components / ReactMD / helpers / layovers / LayoverPlayground.jsx View on Github external
constructor(props) {
    super(props);

    this.state = {
      title: defaultTitle,
      text: defaultText,
      contents: 'list',
      centered: false,
      'anchor-x': Layover.defaultProps.anchor.x,
      'anchor-y': Layover.defaultProps.anchor.y,
      visible: false,
      closeOnOutsideClick: true,
      horizontal: false,
      vertical: false,
      sameWidth: false,
    };
  }