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

Minimal, centered-max-width navbar for portfolios and creative agencies where each nav link carries a configurable hover/active underline animation instead of background highlighting. The active page is driven by an activeNavItem prop rather than route detection.

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/navbar31?email=YOUR_EMAIL&license_key=YOUR_KEY"

Base UI flavor

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

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

Quick start

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

tsx
import { Navbar31, navbar31Demo } from "@/components/beste/block/navbar31";

export default function Layout() {
  return <Navbar31 {...navbar31Demo} />;
}

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

tsx
import { Navbar31 } from "@/components/beste/block/navbar31";

export default function Layout() {
  return (
    <Navbar31
      logo={{ text: "Studio", href: "/" }}
      navItems={[
        { label: "Home", href: "/" },
        { label: "Work", href: "/work" },
        { label: "Contact", href: "/contact" },
      ]}
      activeNavItem="Home"
      buttons={[{ label: "Sign up", href: "/signup" }]}
      underlineStyle="grow"
    />
  );
}

Props

PropTypeDefaultDescription
logo{ text: string; href?: string }Brand text and link; falls back to "brand" / # when omitted
navItemsNavItem[][]Nav links rendered in the desktop bar and mobile menu
activeNavItemstringlabel of the item to mark as current; controls its underline and text color, caller-managed
buttonsArray<{ label: string; href?: string; variant?: "default" | "outline" | "ghost" }>[]Call-to-action buttons after the nav links
underlineStyle"slide" | "grow" | "fade""slide"Which pseudo-element animation the underline uses on hover/active
classNamestringExtra classes for the outer <nav>
ts
type NavItem = { label: string; href?: string };

Behavior notes

More Navigation blocks

View all Navigation
PRO

navbar35

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

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

navbar58

Monogram Navbar

Minimal stacked navbar — a large primary logo square with the wordmark tucked into its corner, over a quiet ruled row of uppercase links. No buttons, no hamburger.

PRO

navbar33

Multi-Level Dropdown Nav

Navbar with hover-activated dropdowns supporting nested sub-menus for deep navigation hierarchies. Perfect for enterprise software and documentation sites with complex information architecture.

PRO

navbar37

Floating Pill Navbar

Centered floating navbar with rounded pill shape, backdrop blur effect, and compact layout. Perfect for modern landing pages and portfolios wanting a minimal floating navigation style.

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.