Navbar

Documentation and examples for Bootstrap's powerful, responsive navigation header, the navbar. Includes support for branding, navigation, and more, including support for our collapse plugin.

How it works

Navbars require a wrapping .navbar with expand{-sm|-md|-lg|-xl|-xxl} for responsive collapsing and color scheme classes.

  • Navbars require a wrapping Navbar component with expand="{sm|md|lg|xl|xxl}" attribute for responsive collapsing and [color scheme](#color-schemes) attribute.
  • Navbars and their contents are fluid by default. Change the container to limit their horizontal width in different ways.
  • Use our spacing and flex utility classes for controlling spacing and alignment within navbars.
  • Navbars are responsive by default, but you can easily modify them to change that. Responsive behavior depends on our Collapse JavaScript plugin.
  • Indicate the current item by using active attribute for the current item in a set.

Supported content

Navbars come with built-in support for a handful of sub-components. Choose from the following as needed:

  • <NavbarBrand> for your company, product, or project name.
  • <Navbar> for a full-height and lightweight navigation (including support for dropdowns).
  • <NavbarToggler> for use with our collapse plugin and other navigation toggling behaviors.
  • Flex and spacing utilities for any form controls and actions.
  • <NavbarText> for adding vertically centered strings of text.
  • <NavbarCollapse> for grouping and hiding navbar contents by a parent breakpoint.
  • Add an optional `.navbar-scroll` to set a max-height and scroll expanded navbar content.

Here's an example of all the sub-components included in a responsive light-themed navbar that automatically collapses at the lg (large) breakpoint.

vue
<template>
 <Navbar
  expand="lg"
  background-color="body-tertiary"
 >
  <Container type="fluid">
   <NavbarBrand>Navbar</NavbarBrand>
   <NavbarToggler />
   <NavbarCollapse>
    <NavbarNavList margin="e-auto b-2 b-lg-0">
     <NavItem>
      <NavLink active>
       Home
      </NavLink>
     </NavItem>
     <NavItem>
      <NavLink to="/lang-en/components/navbar/">
       Link
      </NavLink>
     </NavItem>
     <NavItemDropdown>
      <NavItemDropdownToggle>Dropdown</NavItemDropdownToggle>
      <DropdownMenu>
       <DropdownItem>Action</DropdownItem>
       <DropdownItem to="/lang-en/components/navbar/">
        Another action
       </DropdownItem>
       <DropdownItemDivider />
       <DropdownItem>Something else here</DropdownItem>
      </DropdownMenu>
     </NavItemDropdown>
     <NavItem>
      <NavLink disabled>
       Disabled
      </NavLink>
     </NavItem>
    </NavbarNavList>
    <BForm
     flex
     role="search"
    >
     <BFormInput
      margin="e-2"
      type="search"
      placeholder="Search"
     />
     <b-button
      color="outline-success"
      type="submit"
     >
      Search
     </b-button>
    </BForm>
   </NavbarCollapse>
  </Container>
 </Navbar>
</template>

Brand

The <NavbarBrand> attribute can be applied to most elements, but an anchor works best, as some elements might require utility classes or custom styles.

Text

Add your text within an element with the <NavbarBrand> attribute.

vue
<template>
 <!-- As a link -->
 <Navbar
  background-color="body-tertiary"
 >
  <Container type="fluid">
   <NavbarBrand to="/">
    Navbar
   </NavbarBrand>
  </Container>
 </Navbar>
 <!-- As a heading -->
 <Navbar
  background-color="body-tertiary"
 >
  <Container type="fluid">
   <NavbarBrand
    margin="b-0"
    headings="1"
   >
    Navbar
   </NavbarBrand>
  </Container>
 </Navbar>
</template>

Image

You can replace the text within the <NavbarBrand> attribute with an b-img component.

Image and text

You can also make use of some additional utilities to add an image and text at the same time. Note the addition of display="inline-block" attribute and vertical-align="text-top" attrubute on the b-img component.

vue
<template>
 <Navbar
  background-color="body-tertiary"
 >
  <Container type="fluid">
   <NavbarBrand to="/">
    <b-img
     src="https://upload.wikimedia.org/wikipedia/commons/b/b2/Bootstrap_logo.svg"
     width="30"
     height="24"
     vertical-align="text-top"
     display="inline-block"
    />
    Navbar
   </NavbarBrand>
  </Container>
 </Navbar>
</template>

Nav

Navbar navigation links build on our options with their own modifier class and require the use of toggler classes for proper responsive styling.

Navigation in navbars will also grow to occupy as much horizontal space as possible to keep your navbar contents securely aligned.

Add the active attribute on NavLink to indicate the current page.

Please note that you should also add the ariaCurrent attribute on the active NavLink.

vue
<template>
 <Navbar
  expand="lg"
  background-color="body-tertiary"
 >
  <Container type="fluid">
   <NavbarBrand>Navbar</NavbarBrand>
   <NavbarToggler />
   <NavbarCollapse>
    <NavbarNavList>
     <NavItem>
      <NavLink
       active
       aria-current="page"
      >
       Home
      </NavLink>
     </NavItem>
     <NavItem>
      <NavLink>Link</NavLink>
     </NavItem>
     <NavItem>
      <NavLink
       disabled
       aria-current="page"
      >
       Disabled
      </NavLink>
     </NavItem>
    </NavbarNavList>
   </NavbarCollapse>
  </Container>
 </Navbar>
</template>

And because we use classes for our navs, you can avoid the list-based approach entirely if you like.

vue
<template>
 <Navbar
  expand="lg"
  background-color="body-tertiary"
 >
  <Container type="fluid">
   <NavbarBrand>Navbar</NavbarBrand>
   <NavbarToggler />
   <NavbarCollapse>
    <NavbarNav>
     <NavLink active>
      Home
     </NavLink>
     <NavLink>Features</NavLink>
     <NavLink>Pricing</NavLink>
     <NavLink disabled>
      Disabled
     </NavLink>
    </NavbarNav>
   </NavbarCollapse>
  </Container>
 </Navbar>
</template>

You can also use dropdowns in your navbar.

Dropdown menus require a wrapping element for positioning, so be sure to use separate and nested elements for NavItem component and `NavLink` component as shown below.

vue
<template>
 <Navbar
  expand="lg"
  background-color="body-tertiary"
 >
  <Container type="fluid">
   <NavbarBrand>Navbar</NavbarBrand>
   <NavbarToggler />
   <NavbarCollapse>
    <NavbarNavList>
     <NavItem>
      <NavLink active>
       Home
      </NavLink>
     </NavItem>
     <NavItem>
      <NavLink>Features</NavLink>
     </NavItem>
     <NavItem>
      <NavLink>Pricing</NavLink>
     </NavItem>
     <NavItemDropdown>
      <NavItemDropdownToggle>Dropdown Link</NavItemDropdownToggle>
      <DropdownMenu>
       <DropdownItem>Action</DropdownItem>
       <DropdownItem>Another action</DropdownItem>
       <DropdownItemDivider />
       <DropdownItem>Something else here</DropdownItem>
      </DropdownMenu>
     </NavItemDropdown>
     <NavItem>
      <NavLink disabled>
       Disabled
      </NavLink>
     </NavItem>
    </NavbarNavList>
    <BForm
     flex
     role="search"
    >
     <BFormInput
      margin="e-2"
      type="search"
      placeholder="Search"
     />
     <b-button
      color="outline-success"
      type="submit"
     >
      Search
     </b-button>
    </BForm>
   </NavbarCollapse>
  </Container>
 </Navbar>
</template>

Forms

Place various form controls and components within a navbar:

vue
<template>
 <Navbar
  background-color="body-tertiary"
 >
  <Container type="fluid">
   <BForm
    flex
    role="search"
   >
    <BFormInput
     margin="e-2"
     type="search"
     placeholder="Search"
    />
    <b-button
     color="outline-success"
     type="submit"
    >
     Search
    </b-button>
   </BForm>
  </Container>
 </Navbar>
</template>

Immediate child elements of Navbar component use flex layout and will default to justify-content: space-between. Use additional flex utilities as needed to adjust this behavior.

vue
<template>
 <Navbar
  background-color="body-tertiary"
 >
  <Container type="fluid">
   <NavbarBrand>Navbar</NavbarBrand>
   <BForm
    flex
    role="search"
   >
    <BFormInput
     margin="e-2"
     type="search"
     placeholder="Search"
    />
    <b-button
     color="outline-success"
     type="submit"
    >
     Search
    </b-button>
   </BForm>
  </Container>
 </Navbar>
</template>

Input groups work, too. If your navbar is an entire form, or mostly a form, you can use the Container component as the container and save some HTML.

vue
<template>
 <Navbar
  background-color="body-tertiary"
 >
  <Container type="fluid">
   <BInputGroup>
    <BInputGroupText>@</BInputGroupText>
    <BFormInput
     margin="e-2"
     type="search"
     placeholder="Search"
    />
   </BInputGroup>
  </Container>
 </Navbar>
</template>

Various buttons are supported as part of these navbar forms, too. This is also a great reminder that vertical alignment utilities can be used to align different sized elements.

vue
<template>
 <Navbar
  background-color="body-tertiary"
 >
  <Container
   type="fluid"
   justify-content="start"
  >
   <BForm>
    <b-button
     color="outline-success"
     margin="e-2"
    >
     Main button
    </b-button>
    <b-button
     color="outline-secondary"
     size="sm"
     mergin="e-2"
    >
     Smaller button
    </b-button>
   </BForm>
  </Container>
 </Navbar>
</template>

Text

Navbars may contain bits of text with the help of <NavbarText> component. This class adjusts vertical alignment and horizontal spacing for strings of text.

vue
<template>
 <Navbar
  background-color="body-tertiary"
 >
  <Container type="fluid">
   <NavbarText>Navbar text with an inline element</NavbarText>
  </Container>
 </Navbar>
</template>

Mix and match with other components and utilities as needed.

vue
<template>
 <Navbar
  expand="lg"
  background-color="body-tertiary"
 >
  <Container type="fluid">
   <NavbarBrand>Navbar w/ text</NavbarBrand>
   <NavbarToggler />
   <NavbarCollapse>
    <NavbarNavList margin="e-auto b-2 b-lg-0">
     <NavItem>
      <NavLink active>
       Home
      </NavLink>
     </NavItem>
     <NavItem>
      <NavLink>Features</NavLink>
     </NavItem>
     <NavItem>
      <NavLink>Pricing</NavLink>
     </NavItem>
    </NavbarNavList>
    <NavbarText>Navbar text with an inline element</NavbarText>
   </NavbarCollapse>
  </Container>
 </Navbar>
</template>

Color schemes

Theming the navbar has never been easier thanks to the combination of theming classes and background-color attribute. Choose from .navbar-light for use with light background colors, or .navbar-dark for dark background colors. Then, customize with .bg-* utilities.

vue
<template>
 <Navbar
  expand="lg"
  theme="dark"
  background-color="dark"
  border="botton bottom-dark"
 >
  <Container type="fluid">
   <NavbarBrand>Navbar</NavbarBrand>
   <NavbarToggler />
   <NavbarCollapse>
    <NavbarNavList margin="e-auto b-2 b-lg-0">
     <NavItem>
      <NavLink active>
       Home
      </NavLink>
     </NavItem>
     <NavItem>
      <NavLink to="/lang-en/components/navbar/">
       Link
      </NavLink>
     </NavItem>
     <NavItemDropdown>
      <NavItemDropdownToggle>Dropdown</NavItemDropdownToggle>
      <DropdownMenu>
       <DropdownItem>Action</DropdownItem>
       <DropdownItem to="/lang-en/components/navbar/">
        Another action
       </DropdownItem>
       <DropdownItemDivider />
       <DropdownItem>Something else here</DropdownItem>
      </DropdownMenu>
     </NavItemDropdown>
     <NavItem>
      <NavLink disabled>
       Disabled
      </NavLink>
     </NavItem>
    </NavbarNavList>
    <BForm
     flex
     role="search"
    >
     <BFormInput
      margin="e-2"
      type="search"
      placeholder="Search"
     />
     <b-button
      color="outline-light"
      type="submit"
     >
      Search
     </b-button>
    </BForm>
   </NavbarCollapse>
  </Container>
 </Navbar>
 <Navbar
  expand="lg"
  theme="dark"
  background-color="primary"
 >
  <Container type="fluid">
   <NavbarBrand>Navbar</NavbarBrand>
   <NavbarToggler />
   <NavbarCollapse>
    <NavbarNavList margin="e-auto b-2 b-lg-0">
     <NavItem>
      <NavLink active>
       Home
      </NavLink>
     </NavItem>
     <NavItem>
      <NavLink to="/lang-en/components/navbar/">
       Link
      </NavLink>
     </NavItem>
     <NavItemDropdown>
      <NavItemDropdownToggle>Dropdown</NavItemDropdownToggle>
      <DropdownMenu>
       <DropdownItem>Action</DropdownItem>
       <DropdownItem to="/lang-en/components/navbar/">
        Another action
       </DropdownItem>
       <DropdownItemDivider />
       <DropdownItem>Something else here</DropdownItem>
      </DropdownMenu>
     </NavItemDropdown>
     <NavItem>
      <NavLink disabled>
       Disabled
      </NavLink>
     </NavItem>
    </NavbarNavList>
    <BForm
     flex
     role="search"
    >
     <BFormInput
      margin="e-2"
      type="search"
      placeholder="Search"
     />
     <b-button
      color="outline-light"
      type="submit"
     >
      Search
     </b-button>
    </BForm>
   </NavbarCollapse>
  </Container>
 </Navbar>
 <Navbar
  expand="lg"
  theme="light"
  style="background-color: #e3f2fd;"
 >
  <Container type="fluid">
   <NavbarBrand>Navbar</NavbarBrand>
   <NavbarToggler />
   <NavbarCollapse>
    <NavbarNavList margin="e-auto b-2 b-lg-0">
     <NavItem>
      <NavLink active>
       Home
      </NavLink>
     </NavItem>
     <NavItem>
      <NavLink to="/lang-en/components/navbar/">
       Link
      </NavLink>
     </NavItem>
     <NavItemDropdown>
      <NavItemDropdownToggle>Dropdown</NavItemDropdownToggle>
      <DropdownMenu>
       <DropdownItem>Action</DropdownItem>
       <DropdownItem to="/lang-en/components/navbar/">
        Another action
       </DropdownItem>
       <DropdownItemDivider />
       <DropdownItem>Something else here</DropdownItem>
      </DropdownMenu>
     </NavItemDropdown>
     <NavItem>
      <NavLink disabled>
       Disabled
      </NavLink>
     </NavItem>
    </NavbarNavList>
    <BForm
     flex
     role="search"
    >
     <BFormInput
      margin="e-2"
      type="search"
      placeholder="Search"
     />
     <b-button
      color="outline-light"
      type="submit"
     >
      Search
     </b-button>
    </BForm>
   </NavbarCollapse>
  </Container>
 </Navbar>
</template>

Containers

Although it's not required, you can wrap a navbar in a Container component to center it on a page–though note that an inner container is still required. Or you can add a container inside the Navbar component to only center the contents of a fixed or static top navbar .

vue
<template>
 <Container>
  <Navbar
   expand="lg"
   background-color="body-tertiary"
  >
   <Container type="fluid">
    <NavbarBrand>Navbar</NavbarBrand>
   </Container>
  </Navbar>
 </Container>
</template>

Use any of the responsive containers to change how wide the content in your navbar is presented.

vue
<template>
 <Navbar
  expand="lg"
  background-color="body-tertiary"
 >
  <Container type="md">
   <NavbarBrand>Navbar</NavbarBrand>
  </Container>
 </Navbar>
</template>

Placement

position utilities to place navbars in non-static positions. Choose from fixed to the top, fixed to the bottom, or stickied to the top (scrolls with the page until it reaches the top, then stays there). Fixed navbars use position: fixed, meaning they're pulled from the normal flow of the DOM and may require custom CSS (e.g., padding-top on the <body>) to prevent overlap with other elements.

Also note that .sticky-top uses position: sticky, which isn't fully supported in every browser.

vue
<template>
 <Navbar
  background-color="body-tertiary"
 >
  <Container type="fluid">
   <NavbarBrand>Default</NavbarBrand>
  </Container>
 </Navbar>
</template>
vue
<template>
 <Navbar
  fixed="top"
  background-color="body-tertiary"
 >
  <Container type="fluid">
   <NavbarBrand>Fixed top</NavbarBrand>
  </Container>
 </Navbar>
</template>
vue
<template>
 <Navbar
  fixed="bottom"
  background-color="body-tertiary"
 >
  <Container type="fluid">
   <NavbarBrand>Fixed bottom</NavbarBrand>
  </Container>
 </Navbar>
</template>
vue
<template>
 <Navbar
  sticky="top"
  background-color="body-tertiary"
 >
  <Container type="fluid">
   <NavbarBrand>Sticky top</NavbarBrand>
  </Container>
 </Navbar>
</template>
vue
<template>
 <Navbar
  sticky="bottom"
  background-color="body-tertiary"
 >
  <Container type="fluid">
   <NavbarBrand>Sticky bottom</NavbarBrand>
  </Container>
 </Navbar>
</template>

Scrolling

Add scroll attribute to a NavbarNavList (or other navbar sub-component) to enable vertical scrolling within the toggleable contents of a collapsed navbar. By default, scrolling kicks in at 75vh (or 75% of the viewport height), but you can override that with the local CSS custom property --bs-navbar-height or custom styles. At larger viewports when the navbar is expanded, content will appear as it does in a default navbar.

Please note that this behavior comes with a potential drawback of overflow—when setting overflow="y-auto" (required to scroll the content here), overflow="x" is the equivalent of auto, which will crop some horizontal content.

Here's an example navbar using scroll attribute with style="--bs-scroll-height: 100px;", with some extra margin utilities for optimum spacing.

vue
<template>
 <Navbar
  expand="lg"
  background-color="body-tertiary"
 >
  <Container type="fluid">
   <NavbarBrand>Navbar</NavbarBrand>
   <NavbarToggler />
   <NavbarCollapse>
    <NavbarNavList
     scroll
     scroll-height="100px"
     margin="e-auto b-2 b-lg-0"
    >
     <NavItem>
      <NavLink active>
       Home
      </NavLink>
     </NavItem>
     <NavItem>
      <NavLink>Link</NavLink>
     </NavItem>
     <NavItemDropdown>
      <NavItemDropdownToggle>Dropdown</NavItemDropdownToggle>
      <DropdownMenu>
       <DropdownItem>Action</DropdownItem>
       <DropdownItem>Another action</DropdownItem>
       <DropdownItemDivider />
       <DropdownItem>Something else here</DropdownItem>
      </DropdownMenu>
     </NavItemDropdown>
     <NavItem>
      <NavLink disabled>
       Disabled
      </NavLink>
     </NavItem>
    </NavbarNavList>
    <BForm
     flex
     role="search"
    >
     <BFormInput
      margin="e-2"
      type="search"
      placeholder="Search"
     />
     <b-button
      color="outline-success"
      type="submit"
     >
      Search
     </b-button>
    </BForm>
   </NavbarCollapse>
  </Container>
 </Navbar>
</template>

Responsive behaviors

Navbars can use NavbarToggler component, NavbarCollapse component, and expand="{-sm|-md|-lg|-xl|-xxl} attribute to determine when their content collapses behind a button. In combination with other utilities, you can easily choose when to show or hide particular elements.

For navbars that never collapse, add the expand attribute on the navbar. For navbars that always collapse, don't add any expand attribute.

Toggler

Navbar togglers are left-aligned by default, but should they follow a sibling element like a navbarBrand, they'll automatically be aligned to the far right. Reversing your markup will reverse the placement of the toggler. Below are examples of different toggle styles.

With no navbarBrand component shown at the smallest breakpoint:

vue
<template>
 <Navbar
  expand="lg"
  background-color="body-tertiary"
 >
  <Container type="fluid">
   <NavbarToggler />
   <NavbarCollapse>
    <NavbarBrand>Hidden brand</NavbarBrand>
    <NavbarNavList margin="e-auto b-2 b-lg-0">
     <NavItem>
      <NavLink active>
       Home
      </NavLink>
     </NavItem>
     <NavItem>
      <NavLink>Link</NavLink>
     </NavItem>
     <NavItem>
      <NavLink disabled>
       Disabled
      </NavLink>
     </NavItem>
    </NavbarNavList>
    <BForm
     flex
     role="search"
    >
     <BFormInput
      margin="e-2"
      type="search"
      placeholder="Search"
     />
     <b-button
      color="outline-success"
      type="submit"
     >
      Search
     </b-button>
    </BForm>
   </NavbarCollapse>
  </Container>
 </Navbar>
</template>

With a brand name shown on the left and toggler on the right:

vue
<template>
 <Navbar
  expand="lg"
  background-color="body-tertiary"
 >
  <Container type="fluid">
   <NavbarBrand>Navbar</NavbarBrand>
   <NavbarToggler />
   <NavbarCollapse>
    <NavbarNavList margin="e-auto b-2 b-lg-0">
     <NavItem>
      <NavLink active>
       Home
      </NavLink>
     </NavItem>
     <NavItem>
      <NavLink>Link</NavLink>
     </NavItem>
     <NavItem>
      <NavLink disabled>
       Disabled
      </NavLink>
     </NavItem>
    </NavbarNavList>
    <BForm
     flex
     role="search"
    >
     <BFormInput
      margin="e-2"
      type="search"
      placeholder="Search"
     />
     <b-button
      color="outline-success"
      type="submit"
     >
      Search
     </b-button>
    </BForm>
   </NavbarCollapse>
  </Container>
 </Navbar>
</template>

With a toggler on the left and brand name on the right:

vue
<template>
 <Navbar
  expand="lg"
  background-color="body-tertiary"
 >
  <Container type="fluid">
   <NavbarToggler />
   <NavbarBrand>Navbar</NavbarBrand>
   <NavbarCollapse>
    <NavbarNavList margin="e-auto b-2 b-lg-0">
     <NavItem>
      <NavLink active>
       Home
      </NavLink>
     </NavItem>
     <NavItem>
      <NavLink>Link</NavLink>
     </NavItem>
     <NavItem>
      <NavLink disabled>
       Disabled
      </NavLink>
     </NavItem>
    </NavbarNavList>
    <BForm
     flex
     role="search"
    >
     <BFormInput
      margin="e-2"
      type="search"
      placeholder="Search"
     />
     <b-button
      color="outline-success"
      type="submit"
     >
      Search
     </b-button>
    </BForm>
   </NavbarCollapse>
  </Container>
 </Navbar>
</template>

External content

Sometimes you want to use the collapse plugin to trigger a container element for content that structurally sits outside of the Navbar . Because our plugin works on the id and target matching, that's easily done!

vue
<template>
 <Collapse id="navbarToggleExternalContent">
  <b-div
   background-color="dark"
   padding="3"
  >
   <h5 class="text-white h4">
    Collapsed content
   </h5>
   <span class="text-body-secondary">Toggleable via the navbar brand.</span>
  </b-div>
 </Collapse>
 <Navbar
  theme="dark"
  background-color="dark"
 >
  <Container type="fluid">
   <NavbarToggler target="#navbarToggleExternalContent" />
  </Container>
 </Navbar>
</template>

When you do this, we recommend including additional JavaScript to move the focus programmatically to the container when it is opened. Otherwise, keyboard users and users of assistive technologies will likely have a hard time finding the newly revealed content - particularly if the container that was opened comes *before* the toggler in the document's structure. We also recommend making sure that the toggler has the aria-controls attribute, pointing to the id of the content container. In theory, this allows assistive technology users to jump directly from the toggler to the container it controls–but support for this is currently quite patchy.

Offcanvas

Transform your expanding and collapsing navbar into an offcanvas drawer with the offcanvas plugin. We extend both the offcanvas default styles and use our expand attribute to create a dynamic and flexible navigation sidebar.

In the example below, to create an offcanvas navbar that is always collapsed across all breakpoints, omit the expand attribute entirely.

vue
<template>
 <Navbar
  background-color="body-tertiary"
  position="fixed-top"
  expand="lg"
 >
  <Container type="fluid">
   <NavbarBrand>Navbar</NavbarBrand>
   <NavbarToggler target="#offcanvasRight" />
   <Offcanvas
    id="offcanvasRight"
    placement="end"
   >
    <OffcanvasHeader>
     <OffcanvasTitle>Offcanvas</OffcanvasTitle>
     <CloseButton dismiss="offcanvas" />
    </OffcanvasHeader>
    <OffcanvasBody>
     <NavbarNavList>
      <NavItem>
       <NavLink active>
        Home
       </NavLink>
      </NavItem>
      <NavItem>
       <NavLink>Link</NavLink>
      </NavItem>
      <NavItem>
       <NavLink disabled>
        Disabled
       </NavLink>
      </NavItem>
     </NavbarNavList>
     <BForm
      flex
      role="search"
     >
      <BFormInput
       margin="e-2"
       type="search"
       placeholder="Search"
      />
      <b-button
       color="outline-success"
       type="submit"
      >
       Search
      </b-button>
     </BForm>
    </OffcanvasBody>
   </Offcanvas>
  </Container>
 </Navbar>
</template>

To create an offcanvas navbar that expands into a normal navbar at a specific breakpoint like lg, use expand="lg.

Extend

Mega Menu

vue
<template>
 <Navbar
  expand="lg"
  background-color="body-tertiary"
 >
  <Container type="fluid">
   <NavbarBrand
    to="/"
    padding="0"
    margin="0 e-2 s-md-3 s-xl-0"
   >
    <img
     src="~/assets/img/logo/update/logo4.svg"
     alt="use-bootstrap"
     height="24"
    />
   </NavbarBrand>
   <b-div flex>
    <NavbarToggler />
   </b-div>
   <NavbarCollapse>
    <NavbarNavList margin="e-auto b-2 b-lg-0">
     <NavItemDropdown>
      <NavItemDropdownToggle>Basic Dropdown</NavItemDropdownToggle>
      <DropdownMenu>
       <DropdownItem>Action</DropdownItem>
       <DropdownItem to="/lang-en/components/navbar/">
        Another action
       </DropdownItem>
       <DropdownItemDivider />
       <DropdownItem>Something else here</DropdownItem>
      </DropdownMenu>
     </NavItemDropdown>
     <NavItemDropdown>
      <NavItemDropdownToggle>
       MegaMenu
      </NavItemDropdownToggle>
      <DropdownMenu
       mega
       relative-width="100"
      >
       <Row>
        <Col class="col-lg-3 mb-3 mb-lg-0">
         col-lg-3
        </Col>
        <Col class="col-lg-3 mb-3 mb-lg-0">
         col-lg-3
        </Col>
        <Col class="col-lg-3 mb-3 mb-lg-0">
         col-lg-3
        </Col>
        <Col class="col-lg-3">
         col-lg-3
        </Col>
       </Row>
      </DropdownMenu>
     </NavItemDropdown>
    </NavbarNavList>
   </NavbarCollapse>
  </Container>
 </Navbar>
</template>

Mega Menu Width

vue
<template>
 <Navbar
  expand="lg"
  background-color="body-tertiary"
 >
  <Container type="fluid">
   <NavbarBrand
    to="/"
    padding="0"
    margin="0 e-2 s-md-3 s-xl-0"
   >
    <img
     src="~/assets/img/logo/update/logo4.svg"
     alt="use-bootstrap"
     height="24"
    />
   </NavbarBrand>
   <b-div flex>
    <NavbarToggler />
   </b-div>
   <NavbarCollapse>
    <NavbarNavList margin="e-auto b-2 b-lg-0">
     <NavItemDropdown>
      <NavItemDropdownToggle>
       24rem MegaMenu
      </NavItemDropdownToggle>
      <DropdownMenu
       class="un-w-24rem"
      >
       <Row>
        <Col class="col-lg-3 mb-3 mb-lg-0">
         col-lg-3
        </Col>
        <Col class="col-lg-3 mb-3 mb-lg-0">
         col-lg-3
        </Col>
        <Col class="col-lg-3 mb-3 mb-lg-0">
         col-lg-3
        </Col>
        <Col class="col-lg-3">
         col-lg-3
        </Col>
       </Row>
      </DropdownMenu>
     </NavItemDropdown>
     <NavItemDropdown>
      <NavItemDropdownToggle>
       36rem MegaMenu
      </NavItemDropdownToggle>
      <DropdownMenu
       class="un-w-36rem"
      >
       <Row>
        <Col class="col-lg-3 mb-3 mb-lg-0">
         col-lg-3
        </Col>
        <Col class="col-lg-3 mb-3 mb-lg-0">
         col-lg-3
        </Col>
        <Col class="col-lg-3 mb-3 mb-lg-0">
         col-lg-3
        </Col>
        <Col class="col-lg-3">
         col-lg-3
        </Col>
       </Row>
      </DropdownMenu>
     </NavItemDropdown>
     <NavItemDropdown>
      <NavItemDropdownToggle>
       W-100 MegaMenu
      </NavItemDropdownToggle>
      <DropdownMenu
       mega
       relative-width="100"
      >
       <Row>
        <Col class="col-lg-3 mb-3 mb-lg-0">
         col-lg-3
        </Col>
        <Col class="col-lg-3 mb-3 mb-lg-0">
         col-lg-3
        </Col>
        <Col class="col-lg-3 mb-3 mb-lg-0">
         col-lg-3
        </Col>
        <Col class="col-lg-3">
         col-lg-3
        </Col>
       </Row>
      </DropdownMenu>
     </NavItemDropdown>
    </NavbarNavList>
   </NavbarCollapse>
  </Container>
 </Navbar>
</template>

Subtle theme colors

All colors

Vertical Navbar

vue