How to use the terra-menu.Divider function in terra-menu

To help you get started, we’ve selected a few terra-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 cerner / terra-framework / packages / terra-framework-site / src / app / common / header-templates / Utility.jsx View on Github external
<button>
          {!!accessory &amp;&amp; <div>{accessory}</div>}
          {!!title &amp;&amp; size !== 'tiny' &amp;&amp; <div>{title}</div>}
          {}
        </button>
      
    );
  }
}

Utility.propTypes = propTypes;
Utility.defaultProps = defaultProps;
Utility.Item = Menu.Item;
Utility.ItemGroup = Menu.ItemGroup;
Utility.Divider = Menu.Divider;
Utility.Opts = Menu.Opts;

export default Utility;
github cerner / terra-dev-site / src / app / common / header-templates / Utility.jsx View on Github external
text="Utility Menu"
          onClick={this.handleOnClick}
          icon={buttonIcon}
          variant="utility"
        /&gt;
      
    );
  }
}

Utility.propTypes = propTypes;
Utility.defaultProps = defaultProps;

Utility.Item = Menu.Item;
Utility.ItemGroup = Menu.ItemGroup;
Utility.Divider = Menu.Divider;
Utility.Opts = Menu.Opts;

export default Utility;

terra-menu

The menu is a popup component that displays a list of items, item groups, and dividers. Menu Items can be actionable, have toggle-style selection, or have nested submenu items. Menu Item groups are a single-select grouping of menu items. The Menu will det

Apache-2.0
Latest version published 7 months ago

Package Health Score

54 / 100
Full package analysis