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.
Component Features
- 📐 Flexible Positioning: Supports
stickyandfixedpositioning modes. - ➡️ Bordered Style: Supports
borderedprop to add border styling. - 📱 Responsive Collapse: Automatically collapses to hamburger menu on small screens.
- ⬆️ Scroll Hide: Supports hiding the navbar on scroll with
scrollHideprop. - 🌤️ Transparent Style: Supports
transparentprop for overlay navigation bars. - 🎨 Theme Customization: Based on
BrConfigProviderfor global theming and TailwindCSS local overrides.
Basic Usage
The basic navbar includes a brand logo on the left, navigation items in the middle, and action buttons on the right.
With Dropdown Menu
Combine with the BrDropdown component to implement multi-level dropdown navigation items.
Mobile Responsive
Automatically hides navigation content on small screens, displaying a hamburger menu that expands into a mobile-specific menu upon clicking.
Theming
The style of BrNavbar is deeply integrated with TailwindCSS and BrConfigProvider. You can modify colors globally or override them locally using Tailwind classes.