How to use the @rmwc/menu.MenuAnchor function in @rmwc/menu

To help you get started, we’ve selected a few @rmwc/menu 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 fluidtrends / chunky / web / lib / components / Dashboard.js View on Github external
var _this3 = this;

      if (this.props.renderContent) {
        return _react2.default.createElement('div', null);

      return _react2.default.createElement(
        { style: {
            alignSelf: 'stretch',
            backgroundColor: this.props.sectionsBackgroundColor,
            textAlign: 'left',
            paddingLeft: '20px'
          } },
          { style: {
              padding: '10px'
            } },
              style: {
                display: 'flex',
                flexDirection: 'row',
                alignItems: 'center',
                color: this.props.sectionSelectedColor
              onClick: function onClick(evt) {
                return _this3.setState({ 'compactMenuIsOpen': !_this3.state.compactMenuIsOpen });
              } },