Skip to content

    Browse components

    Navbar Flow

    A full-width navbar that flows into a floating glass pill as you scroll, with a sliding hover highlight, scroll progress line and an animated mobile menu.

    Open
    Customize
    sticky
    fixed
    absolute

    Installation

    npx shadcn@latest add @glint-ui/navbar-flow

    First time using @glint-ui? Add the registry to components.json once, or install by URL: npx shadcn@latest add https://glintui.vercel.app/r/navbar-flow.json

    Usage

    import { NavbarFlow } from "@/components/ui/navbar-flow";
    
    <NavbarFlow
      brand={<Logo />}
      links={[{ label: "Product", href: "#product" }, { label: "Pricing", href: "#pricing" }]}
      action={<a href="/signup">Get started</a>}
    />

    Props

    PropTypeDefaultDescription
    linksReactNode—Array of { label, href }.
    brandReactNode—Logo or wordmark on the left.
    actionReactNode—Call to action on the right.
    scrollContainerRefReactNode—Ref to a scrolling ancestor. Defaults to the window.
    thresholdnumber40Px scrolled before the bar becomes a pill.
    pillWidthnumber720Max width of the floating pill, in px.
    position"sticky" | "fixed" | "absolute""sticky"How the header is positioned.
    progressbooleantrueScroll-progress line along the pill.
    accentstring"#a3e635"Progress line and active-link dot color.
    classNamestring—Extra classes for the root element.