Navbar
Documentation and examples for Bootstrapโs powerful, responsive navigation header, the navbar. Includes support for branding, navigation, and more, including support for Bootstrap collapse plugin.
Navbar on BootstrapNavbar Dark
<nav class="navbar navbar-expand-lg navbar-dark bg-dark fs--1">
<a class="navbar-brand" href="#">falcon</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarContent1" aria-controls="navbarContent1" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarContent1">
<ul class="navbar-nav mr-auto">
<li class="nav-item"><a class="nav-link" href="#">Link</a></li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" id="navbarDropdownComponent" href="#" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Dropdown</a>
<div class="dropdown-menu dropdown-menu-right py-0" aria-labelledby="navbarDropdownComponent">
<div class="bg-white rounded-soft py-2">
<a class="dropdown-item" href="#">Action</a>
<a class="dropdown-item" href="#">Another action</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="#">Something else here</a>
</div>
</div>
</li>
</ul>
<form class="form-inline my-2 my-lg-0">
<input class="form-control form-control-sm mr-sm-2" type="search" placeholder="Search" aria-label="Search">
<button class="btn btn-sm btn-light my-2 my-sm-0" type="submit">Search</button>
</form>
</div>
</nav>
Navbar Primary
<nav class="navbar navbar-expand-lg navbar-dark bg-primary fs--1">
<a class="navbar-brand" href="#">falcon</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarContent2" aria-controls="navbarContent2" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarContent2">
<ul class="navbar-nav mr-auto">
<li class="nav-item"><a class="nav-link" href="#">Link</a></li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" id="navbarDropdown1" href="#" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Dropdown</a>
<div class="dropdown-menu dropdown-menu-right py-0" aria-labelledby="navbarDropdown1">
<div class="bg-white rounded-soft py-2">
<a class="dropdown-item" href="#">Action</a>
<a class="dropdown-item" href="#">Another action</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="#">Something else here</a>
</div>
</div>
</li>
</ul>
<form class="form-inline my-2 my-lg-0">
<input class="form-control form-control-sm mr-sm-2" type="search" placeholder="Search" aria-label="Search">
<button class="btn btn-sm btn-light my-2 my-sm-0" type="submit">Search</button>
</form>
</div>
</nav>