Navbar
A powerful, responsive navigation header, the navbar. Includes support for branding, navigation, and more.
This is a pass through component from React-Bootstrap.
See React-Bootstrap for documentation.
Basic Usage
Theme Variables (SCSS)#
// Navbar$navbar-padding-y: calc($spacer / 2) !default;$navbar-padding-x: $spacer !default;$navbar-nav-link-padding-x: .5rem !default;$navbar-brand-font-size: $font-size-lg !default;// Compute the navbar-brand padding-y so the navbar-brand will have the same height as navbar-text and nav-link// The default for $nav-link-padding-y is .5rem. Copied here for modularization$nav-link-height: $font-size-base * $line-height-base + .5rem * 2 !default;$navbar-brand-height: $navbar-brand-font-size * $line-height-base !default;$navbar-brand-padding-y: calc(($nav-link-height - $navbar-brand-height) / 2) !default;$navbar-toggler-padding-y: .25rem !default;$navbar-toggler-padding-x: .75rem !default;$navbar-toggler-font-size: $font-size-lg !default;$navbar-toggler-border-radius: $btn-border-radius !default;$navbar-nav-scroll-max-height: 75vh !default;$navbar-dark-color: rgba($white, .5) !default;$navbar-dark-hover-color: rgba($white, .75) !default;$navbar-dark-active-color: $white !default;$navbar-dark-disabled-color: rgba($white, .25) !default;$navbar-dark-toggler-icon-bg: str-replace(url("data:image/svg+xml,%3csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke='#{$navbar-dark-color}' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e"), "#", "%23") !default;$navbar-dark-toggler-border-color: rgba($white, .1) !default;$navbar-light-color: rgba($black, .5) !default;$navbar-light-hover-color: rgba($black, .7) !default;$navbar-light-active-color: rgba($black, .9) !default;$navbar-light-disabled-color: rgba($black, .3) !default;$navbar-light-toggler-icon-bg: str-replace(url("data:image/svg+xml,%3csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke='#{$navbar-light-color}' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e"), "#", "%23") !default;$navbar-light-toggler-border-color: rgba($black, .1) !default;$navbar-light-brand-color: $navbar-light-active-color !default;$navbar-light-brand-hover-color: $navbar-light-active-color !default;$navbar-dark-brand-color: $navbar-dark-active-color !default;$navbar-dark-brand-hover-color: $navbar-dark-active-color !default;