Floating Nav

A sticky marketing navbar that tucks into a floating pill after you scroll, with a hover highlight that glides between links and an animated mobile menu.

src/registry/blocks/floating-nav.tsx/r/floating-nav.json

Installation#

bash
npx shadcn@latest add https://ui.minidev.pro/r/floating-nav.json

Usage#

tsx
import { FloatingNav } from "@/components/ui/floating-nav"

export function Example() {
  return <FloatingNav />
}

API reference#

FloatingNav props
PropTypeDefault
brandReact.ReactNode( <span className="flex items-center ...
linksNavLink[]LINKS
cta{ label: string; href?: string; onClick?: () => void }{ label: "Start free" }
secondary{ label: string; href?: string } | null{ label: "Sign in", href: "#" }
classNamestring-

Dependencies#

npm

lucide-reactmotion

Built from

All navigation components