Navbar / Header
E-Commerce Mega Nav
A conversion-focused e-commerce navigation inspired by Framer's E-Commerce Mega Nav. Features a top announcement bar, product-rich mega menus with direct product previews and promotional cards, live search, cart badge with mini-cart, and a responsive mobile drawer with drill-down categories.
- Set
variant"ecommerce-mega-nav" - activates the comprehensive e-commerce navigation with announcement bar, multi-category mega menus, product cards, promo banners, cart indicator, and mobile drawer.
- Pass
logoText"NUTRIFY" - sets the brand name in both the desktop bar and mobile drawer.
- Customize
color - themes the announcement bar, badges, active indicators, and checkout CTA buttons.
Installation
New project? Follow the installation guide to set up Tailwind CSS, shadcn, the cn helper and lucide-react, register the @algorize-ui registry once, then copy your styles from the Themes page.
Install Navbar
components/ is written into your project. Copy any snippet from a Usage tab above and it runs.
Install dependencies
Step 1 installs this for you. Run it yourself only if you are adding Navbar to an existing project by hand. The cn helper and lucide-react are not listed — the installation guide covers them once for every component.
button is a component, not a package — the shadcn CLI installs it as source files.
Examples
Navbar
The default bar: wordmark, desktop links with dropdowns, and a mobile drawer.
- Set
color"indigo" | "rose" | "emerald" | "zinc" | "primary" | "#hex" - themes the logo mark icon and the primary call-to-action button.
Centered
- Set
variant"centered" - to balance the logo in the middle with links either side.
Floating
- Set
variant"floating" - for a pill-shaped glass bar that hovers over the hero.
Minimal
- Set
variant"minimal" - to drop the border and background entirely.
Glass
- Set
variant"glass" - to keep the full-width bar but blur whatever scrolls beneath it.
Props Reference
| Prop | Type | Default | Description |
|---|---|---|---|
variant | "default" | "floating" | "centered" | "minimal" | "glass" | "ecommerce-mega-nav" | "default" | Determines the structural layout and positioning of the navbar. Use "ecommerce-mega-nav" for a full-featured e-commerce header with announcement bar, product-rich mega menus, cart, and mobile drawer. |
color | "primary" | "indigo" | "rose" | "emerald" | "zinc" | string | "primary" | Applies global color themes to the logo icon and primary
Call-to-Action button. Accepts named themes or valid hex codes (e.g.
"#8b5cf6"). |
logoText | string | "Nexus" | The text displayed next to the logo mark. |
linkComponent | React.ElementType | "a" | The React component used for internal links. In Next.js, pass
next/link to preserve client-side routing. |