How to use the react-md.DropdownMenu.HorizontalAnchors 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 / components / Components / Menus / GoogleDocsClone / DocumentMenus / DocumentMenu.jsx View on Github external
import React, { PureComponent } from 'react';
import PropTypes from 'prop-types';
import cn from 'classnames';
import {
  AccessibleFakeInkedButton,
  DropdownMenu,
} from 'react-md';

const anchor = {
  x: DropdownMenu.HorizontalAnchors.INNER_LEFT,
  y: DropdownMenu.VerticalAnchors.BOTTOM,
};

const LIST_PADDING = 32;
const HEADER_HEIGHT = 80;
const EMPTY_STYLE = { height: null };

export default class DocumentMenu extends PureComponent {
  static propTypes = {
    id: PropTypes.string.isRequired,
    text: PropTypes.string.isRequired,
    menuItems: PropTypes.array.isRequired,
  };

  state = { visible: false, listStyle: EMPTY_STYLE };
github taskcluster / taskcluster-tools / src / App / AccountMenu.js View on Github external
return (
      <div>
        <div>
          
        </div>

        
          
            <div>Eli Perelman</div>
            <div>
              <div>
                <small>eliperelman@mozilla.com</small>
              </div>
              <div>
                arrow_drop_down
              </div>
            </div></div>