--- layout: documentation doc-tab: components doc-subtab: navbar --- {% include subnav-components.html %} {% capture navbar_example %} {% include navbar.html %} {% endcapture %}

Navbar

A responsive horizontal navbar that can supports images, links, buttons, and dropdowns


The new .navbar replaces the old .nav component. You can still access its documentation here.

The .navbar component is a responsive and versatile horizontal navigation bar with the following structure:

  • .navbar the main container
    • .navbar-brand the left side, which usually contains the logo and optionally some links or icons
      • .navbar-burger the hamburger icon, which toggles the navbar menu on touch devices
    • .navbar-menu the right side, hidden on touch devices, visible on desktop
      • .navbar-start the left part of the menu, which appears next to the navbar brand on desktop
      • .navbar-end the right part of the menu, which appears at the end of the navbar
        • .navbar-item each single item of the navbar, which can either be a a or a div
          • .navbar-link a link as the sibling of a dropdown, with an arrow
          • .navbar-dropdown the dropdown menu, which can include navbar items and dividers
            • .navbar-divider a horizontal line to separate navbar items
{{navbar_example}}
{% highlight html %}{{navbar_example}}{% endhighlight %}