Components/Navbar
Binhlaig UI Component

Navbar

A responsive navigation bar with brand, links, actions and mobile menu support.

Installation

Initialize Binhlaig UI once, then install Navbar using the saved installer.

Initialize first

npx binhlaig-ui@latest init
Terminal
npx binhlaig-ui@latest add navbar

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.

With Actions

Add search, theme controls or primary actions.

Binhlaig UI

Update or Overwrite

Replace an older Navbar source with the latest registry version.

npx binhlaig-ui@latest add navbar --overwrite

API Reference

Main primitives available in Binhlaig UI Navbar.

ComponentPurpose
NavbarRoot navigation header.
NavbarContainerCenters and spaces navbar content.
NavbarBrandBrand or logo link.
NavbarNavDesktop navigation links.
NavbarLinkNavigation link with active state.
NavbarActionsRight-side action controls.
NavbarMenuButtonMobile menu toggle.
NavbarMobileMenuResponsive mobile navigation panel.
NavbarMobileLinkMobile navigation link.