Navbar Flow

Animated navbar component with flowing SVG connections and dropdown menus.

The NavbarFlow will show on top of the page

Installation

npx shadcn@latest add https://scrollx-ui.vercel.app/registry/navbar-flow.json 

Usage

import NavbarFlow, {
  FeatureItem,
  HoverLink,
} from "@/components/ui/navbar-flow";
<NavbarFlow
  emblem={<ScrollXHeading className="w-auto h-4 sm:h-5 whitespace-nowrap" />}
  links={[
    {
      text: "Components",
      submenu: (
        <div className="flex flex-col space-y-2">
          <HoverLink url="/components/button">Button</HoverLink>
          <HoverLink url="/components/hero">Hero Section</HoverLink>
          <HoverLink url="/components/navbar">Navbar</HoverLink>
          <HoverLink url="/components/footer">Footer</HoverLink>
          <HoverLink url="/components/cards">Cards</HoverLink>
          <HoverLink url="/components/forms">Forms</HoverLink>
        </div>
      ),
    },
    {
      text: "Templates",
      submenu: (
        <div className="grid grid-cols-1 gap-2 w-48">
          <FeatureItem
            heading="Portfolio Template"
            url="/templates/portfolio"
            info="Clean, personal showcase for designers & developers."
          />
          <FeatureItem
            heading="Business Template"
            url="/templates/business"
            info="Professional website layout for startups & businesses."
          />
          <FeatureItem
            heading="Blog Template"
            url="/templates/blog"
            info="Minimal blog with modern reading experience."
          />
          <FeatureItem
            heading="Landing Page"
            url="/templates/landing"
            info="High-converting landing page for product launches."
          />
        </div>
      ),
    },
    {
      text: "Showcase",
      submenu: (
        <div className="flex flex-col space-y-2">
          <HoverLink url="/showcase/astroship">Astroship</HoverLink>
          <HoverLink url="/showcase/papermod">PaperMod</HoverLink>
          <HoverLink url="/showcase/satori">Satori</HoverLink>
          <HoverLink url="/showcase/scrollx">ScrollX</HoverLink>
          <HoverLink url="/showcase/speedyfolio">Speedyfolio</HoverLink>
        </div>
      ),
    },
    { text: "About", url: "/about" },
  ]}
  rightComponent={<ThemeSwitchIcon />}
/>

API Reference

Navbar Flow

Interactive navbar featuring animated connections and smooth hover transitions.

Props

PropertyTypeDefaultDescription
emblemReactNodeundefined
Logo or brand element displayed on the left side of the navbar.
linksNavLink[][]
Array of navigation links. Each link can have text, url, and optional submenu.
extraIconsReactNode[][]
Additional icons displayed in the right section of the navbar.
styleNamestring''
Additional CSS classes to apply to the navbar container.
rightComponentReactNodeundefined
Custom component displayed in the right section alongside extra icons.

Built withby Ahdeetai.