Skip to main content
← Back to Components

Floating Navbar

A modern floating navigation bar with blur effects and smooth animations

Live Preview

Scroll to see the navbar behavior

Installation

app/page.tsxtsx
import { FloatingNavbar } from "@/components/ui/floating-navbar";

const navItems = [
  { name: "Components", href: "/components" },
  { name: "Docs", href: "/docs" },
  { name: "About", href: "/about" },
];

export default function Page() {
  return (
    <FloatingNavbar 
      navItems={navItems}
      // Option 1: Just brand name (gradient text)
      brandName="Your Brand"
      
      // Option 2: Just logo
      // brandLogo="/logo.png"
      
      // Option 3: Logo + Name
      // brandLogo="/logo.png"
      // brandName="Brand"
      
      brandHref="/"
      showCta={true}
      ctaText="Get Started"
      ctaHref="/signup"
    />
  );
}

Props

PropTypeDescription
navItemsNavItem[]Array of navigation items with name and href
brandNamestringBrand name/logo text (default: "Aurora UI")
brandHrefstringLink destination for brand (default: "/")
brandLogostring | ReactNodeLogo image URL or custom React element. Shows instead of or alongside brandName
showCtabooleanShow/hide CTA button (default: true)
ctaTextstringCTA button text (default: "Get Started")
ctaHrefstringLink destination for CTA button (default: "/components")
classNamestringOptional custom classes