Skip to content

Navbar

An enterprise-grade navigation bar component based on BrConfigProvider. Supports responsive collapsing, sticky effects, and mobile adaptation. Provides flexible sub-components for complex navigation structures.

Basic Usage

The basic navbar includes a brand logo on the left, navigation items in the middle, and action buttons on the right.

BreezeUI
Example

With Dropdown Menu

Combine with the BrDropdown component to implement multi-level dropdown navigation items.

Enterprise
Example

Mobile Responsive

Automatically hides navigation content on small screens, displaying a hamburger menu that expands into a mobile-specific menu upon clicking.

Mobile App
Example

Theming

The style of BrNavbar is deeply integrated with TailwindCSS and BrConfigProvider. You can modify colors globally or override them locally using Tailwind classes.

Global Theme
Dark Nav
Example

API

BrNavbar Props

NameTypeDefaultDescription
position'static' | 'sticky' | 'fixed''sticky'Positioning of the navbar
isBorderedbooleanfalseWhether to display a bottom border
shouldHideOnScrollbooleanfalseWhether to hide automatically when scrolling down
isTransparentbooleanfalseWhether it is transparent initially and shows background after scrolling
scrollTriggernumber20Scroll distance (px) to trigger the scroll style
classstring-Custom class names

BrNavbarBrand Props

NameTypeDefaultDescription
classstring-Custom class names

BrNavbarContent Props

NameTypeDefaultDescription
justify'start' | 'center' | 'end''start'Alignment of the content
classstring-Custom class names

BrNavbarItem Props

NameTypeDefaultDescription
isActivebooleanfalseWhether it is in an active state
isDisabledbooleanfalseWhether it is disabled
hrefstring-Link URL (renders as an a tag if present)
classstring-Custom class names

BrNavbarTrigger Props

NameTypeDefaultDescription
ariaLabelstring'Toggle navigation menu'Accessibility label