Binhlaig UI Component
Navbar
A responsive navigation bar with brand, links, actions and mobile menu support.
Installation
Install Navbar in your project.
Terminal
npx binhlaig-ui@latest add navbarFor project setup, installer selection, dependencies, and advanced installation instructions, see the Installation Guide.
View Installation Guide →Update or Overwrite →Import
Import the Navbar primitives you need.
import {
Navbar,
NavbarActions,
NavbarBrand,
NavbarContainer,
NavbarLink,
NavbarMenuButton,
NavbarMobileLink,
NavbarMobileMenu,
NavbarNav,
} from "@/components/ui/navbar"Basic
Use brand, navigation links and actions inside the navbar container.
Responsive
Hide desktop navigation and show a mobile menu button on smaller screens.
Active Link
Use the active prop to highlight the current route.
With Actions
Add search, theme controls or primary actions.
API Reference
Main primitives available in Binhlaig UI Navbar.
| Component | Purpose |
|---|---|
Navbar | Root navigation header. |
NavbarContainer | Centers and spaces navbar content. |
NavbarBrand | Brand or logo link. |
NavbarNav | Desktop navigation links. |
NavbarLink | Navigation link with active state. |
NavbarActions | Right-side action controls. |
NavbarMenuButton | Mobile menu toggle. |
NavbarMobileMenu | Responsive mobile navigation panel. |
NavbarMobileLink | Mobile navigation link. |