Using the component

From Vanilla JS, just add those script in your index.html header:

<script type="module"
        src="https://lib.lumen.com/EnterpriseNav/{version}/dist/po-enterprise-nav/po-enterprise-nav.esm.js"></script>
<script nomodule
        src="https://lib.lumen.com/EnterpriseNav/{version}/dist/po-enterprise-nav/po-enterprise-nav.js"></script>

From other frameworks: we strongly recommend to visit https://stenciljs.com/docs/overview.

For every version, there is NPM package is available in the url: https://lib.lumen.com/EnterpriseNav/{version}/po-enterprise-nav.tgz.

Reserving space for the component

In order to avoid flicker behavour using Enterprise Navigation Component, it's recommend to reserve some space for the component adding some extra CSS classes.

For the header component:

  If the header size is set as '-xl' in the customize object:
    enterprise-nav-header {
      min-height: 137px;  
    }

  By default:
    enterprise-nav-header {
      min-height: 97px;  
    }

For the menu component:

  If the menu component is set as horizontal in the customize object:
    // not needed any CSS class

  By default:      
    @media only screen and (min-width: 992px) {
      enterprise-nav-menu {
        min-width: 96px;
      }
    }