Sliding Indicator Navbar

Responsive navbar with animated sliding underline indicator that follows hover and highlights active navigation item. Perfect for SaaS dashboards and apps wanting polished micro-interactions.

PRO

A sticky desktop navbar where a thin underline slides beneath whichever nav item is hovered, falling back to the active item when the pointer leaves. The indicator position is measured from the actual link elements via refs, so it lines up exactly under labels of any width. Below the lg breakpoint the desktop row collapses into a hamburger-triggered dropdown panel with its own active-state styling.

Upgrade to Pro

Pro blocks install through the shadcn CLI with your license key and ship their full source. Docs and live previews stay open to everyone, so you can read every block's details first.

Installation

Swap YOUR_EMAIL and YOUR_KEY for the email and license key on your account. Find your license key on your account page.

Radix flavor

bash
npx shadcn add "https://ui.beste.co/r/navbar35?email=YOUR_EMAIL&license_key=YOUR_KEY"

Base UI flavor

bash
npx shadcn add "https://ui.beste.co/r-base/navbar35?email=YOUR_EMAIL&license_key=YOUR_KEY"

This installs the block to components/beste/block/navbar35.tsx and the shadcn/ui dependencies it needs (button).

Quick start

The installed file exports navbar35Demo alongside the block: the exact props behind the preview above. Spread it to get a working navbar in one line.

tsx
import { Navbar35, navbar35Demo } from "@/components/beste/block/navbar35";

export default function Layout() {
  return <Navbar35 {...navbar35Demo} />;
}

Then replace the demo with your own props. Written out, a trimmed setup looks like this:

tsx
import { Navbar35 } from "@/components/beste/block/navbar35";

export default function Layout() {
  return (
    <Navbar35
      logo={{ text: "Morphic", href: "/" }}
      navItems={[
        { label: "Home", href: "/" },
        { label: "Products", href: "/products" },
        { label: "Pricing", href: "/pricing" },
      ]}
      activeNavItem="Home"
      buttons={[
        { label: "Sign in", variant: "ghost", href: "/login" },
        { label: "Get Started", variant: "default", href: "/signup" },
      ]}
    />
  );
}

Props

PropTypeDefaultDescription
logo{ text: string; href?: string }Brand text and link, shown at the left
navItemsNavItem[][]Desktop and mobile nav links, in order
activeNavItemstringLabel of the item the sliding indicator rests on by default
buttonsArray<{ label: string; href?: string; variant?: "default" | "outline" | "ghost" }>[]Action buttons rendered right of the nav, repeated in the mobile panel
classNamestringExtra classes for the outer <nav>
ts
type NavItem = { label: string; href?: string };

Behavior notes

More Navigation blocks

View all Navigation
PRO

navbar31

Animated Underline Navbar

Minimal navbar with configurable animated underline effects (slide, grow, or fade) on navigation links. Perfect for portfolio sites and creative agencies wanting subtle hover animations.

PRO

navbar36

Tab-Style Navbar

Navbar with tab-style navigation supporting underline or pill active states for app-like navigation. Perfect for dashboards and admin panels with section-based interfaces.

PRO

navbar38

Dual-Row Navbar

Two-tier navbar with slim top bar for announcements and contact info above main navigation. Perfect for e-commerce and service businesses displaying promotions and support details.

PRO

navbar51

Tab Bar Navbar

Two-row navbar with brand, availability status and seal CTA on top, and an underlined active-tab link row that scrolls horizontally on mobile.

PRO

navbar32

Search-Focused Navbar

Navbar with prominent search input, navigation links, and action button for search-driven experiences. Perfect for marketplaces, directories, and content platforms prioritizing discovery.

PRO

navbar34

Sidebar Drawer Navbar

Navbar with slide-in sidebar drawer featuring grouped navigation sections and overlay backdrop. Perfect for content-rich sites wanting organized off-canvas navigation menus.