Navbar

The navbar provides context through globally accessible menu options.

Overview

The navbar or the app header provides context through globally accessible menu options and positions a consistent component to connect various Trimble applications and contains the main navigation for your application.

<nav class="navbar nav navbar-expand-sm modus-header">
  <button class="btn btn-lg btn-icon-only btn-text-dark" id="menuButton" href="#overview" data-toggle="#" type="button">
    <i class="modus-icons notranslate" aria-hidden="true">menu</i>
  </button>
  <a href="#overview" class="navbar-brand mr-auto ml-2">
    <img src="https://modus-bootstrap.trimble.com/img/trimble-logo.svg" width="107" height="25" class="img-fluid d-none d-sm-block" alt="home">
    <img src="https://modus-bootstrap.trimble.com/img/trimble-icon.svg" class="d-block d-sm-none" height="25" width="25" alt="home">
  </a>
  <div class="collapse navbar-collapse">
    <div class="navbar-nav ml-auto">
      <button type="button" class="btn btn-lg btn-icon-only btn-text-dark ml-2 p-2" data-toggle="tooltip"
         data-placement="bottom" title="Notifications">
        <svg width="32" height="32" fill="currentColor">
          <use xlink:href="/modus-solid-icons.svg#notifications" /></svg>
      </button>
      <button type="button" class="btn btn-lg btn-icon-only btn-text-dark ml-2 p-2" data-toggle="tooltip"
         data-placement="bottom" title="Help">
        <svg width="32" height="32" fill="currentColor">
          <use xlink:href="/modus-solid-icons.svg#help" /></svg>
      </button>
      <button type="button" class="btn btn-lg btn-icon-only btn-text-dark ml-2 p-2" data-toggle="tooltip"
         data-placement="bottom" title="Applications">
        <svg width="32" height="32" fill="currentColor">
          <use xlink:href="/modus-solid-icons.svg#apps" /></svg>
      </button>
    </div>
  </div>
  <button type="button" aria-label="Menu" class="btn btn-lg btn-icon-only btn-text-dark d-block d-sm-none p-2">
    <svg width="32" height="32" fill="currentColor">
          <use xlink:href="/modus-solid-icons.svg#more-vertical" /></svg>
  </button>
  <button type="button" class="btn btn-lg btn-icon-only rounded-circle border-white ml-2 border-0 p-2"
         data-toggle="tooltip" data-placement="bottom" data-html="true"
         title="<div class=text-left>MyTrimble<br>Stephanie Carter<br>stephanie_carter@example.com</div>">
         <svg width="32" height="32" fill="currentColor">
          <use xlink:href="/modus-solid-icons.svg#person-account" /></svg>
  </button>
</nav>

Blue Variant

An alternative blue variant is available. Add the classes navbar-blue to the navbar and add text-white to the icons.

<nav class="navbar navbar-blue nav navbar-expand-sm modus-header py-1">
  <button class="btn btn-lg btn-icon-only p-2" href="#overview" data-toggle="#" type="button">
    <i class="modus-icons notranslate" aria-hidden="true">menu</i>
  </button>
  <a href="#blue-variant" class="navbar-brand mr-auto ml-2">
    <img src="https://modus-bootstrap.trimble.com/img/trimble-logo-rev.svg" width="107" height="25" class="img-fluid d-none d-sm-block" alt="home">
    <img src="https://modus-bootstrap.trimble.com/img/trimble-icon-rev.svg" class="d-block d-sm-none" height="25" width="25" alt="home">
  </a>
  <div class="collapse navbar-collapse">
    <div class="navbar-nav ml-auto">
      <button type="button" class="btn btn-lg btn-icon-only ml-2 p-2" data-toggle="tooltip"
         data-placement="bottom" title="Notifications">
        <svg width="32" height="32" fill="currentColor">
          <use xlink:href="/modus-solid-icons.svg#notifications" /></svg>
      </button>
      <button type="button" class="btn btn-lg btn-icon-only ml-2 p-2" data-toggle="tooltip"
         data-placement="bottom" title="Help">
        <svg width="32" height="32" fill="currentColor">
          <use xlink:href="/modus-solid-icons.svg#help" /></svg>
      </button>
      <button type="button" class="btn btn-lg btn-icon-only ml-2 p-2" data-toggle="tooltip"
         data-placement="bottom" title="Applications">
        <svg width="32" height="32" fill="currentColor">
          <use xlink:href="/modus-solid-icons.svg#apps" /></svg>
      </button>
    </div>
  </div>
  <button type="button" aria-label="Menu" class="btn btn-lg btn-icon-only d-block d-sm-none p-2">
    <svg width="32" height="32" fill="currentColor">
          <use xlink:href="/modus-solid-icons.svg#more-vertical" /></svg>
  </button>
  <button type="button" class="btn btn-lg btn-icon-only rounded-circle ml-2 border-0 p-2"
         data-toggle="tooltip" data-placement="bottom" data-html="true"
         title="<div class=text-left>MyTrimble<br>Stephanie Carter<br>stephanie_carter@example.com</div>">
         <svg width="32" height="32" fill="currentColor">
          <use xlink:href="/modus-solid-icons.svg#person-account" /></svg>
  </button>
</nav>

You can omit the navbar menu button if it isn’t needed.