Skip to content

Navbar

<bh-navbar> | BharatNavbar

The Navbar component provides a customizable navigation bar that responds to different screen sizes. It features branding options, flexible navigation item positioning, and various styling variants.

Open in flex-shrink: 0; flex-shrink: 0;
HomeProductsServicesContact

Basic Usage

Interactive Playground

Experiment with different properties of the navbar component.

Open in flex-shrink: 0; flex-shrink: 0;
HomeAboutContact

Basic Properties

Appearance Options

Custom Background

Items Position

Control the positioning of navigation items:

Open in flex-shrink: 0; flex-shrink: 0;
HomePricingDocs
HomePricingDocs

Advanced Styling

Customize the appearance with backgrounds, shadows, borders, and more.

Open in flex-shrink: 0; flex-shrink: 0;
HomeProductsServicesHomeProductsServices

Properties

PropertyTypeDescription
brandingTextstringText to display as brand name
brandingTextColorstringColor of the branding text
brandingLogostringURL of the branding logo
itemsPositionstringPosition of navigation items: "left" or "right"
paddingstringCustom padding for the navbar
variantstringVisual style: "primary", "secondary", "gradient", "rounded", "tricolor"
widthstringCustom width
heightstringCustom height
backgroundstringCustom background color or gradient
borderRadiusstringCustom border radius
borderstringCSS border property
borderImagestringCSS border-image property
colorstringText color