Floating Navbar
newPill navbar that turns to frosted glass on scroll, hides on scroll-down, returns on scroll-up, with a sheet menu on mobile.
navigationscroll8 files · 572 locdeps: clsx, tailwind-merge
Installation
With the shadcn CLI, pointing at this platform’s registry:
npx shadcn@latest add https://opusui.131199999.xyz/r/floating-navbar.jsonOr offline, straight from your opus55 checkout (copies every file it needs):
node ../tailwind_component/opus55/scripts/add.mjs floating-navbarUsage
import { FloatingNavbar } from "@/components/opus/blocks/floating-navbar";
// in your layout, above the page content:
<FloatingNavbar />API
| Prop | Type | Default | Description |
|---|---|---|---|
| scrollContainer | HTMLElement | null | — | Track a scroll box instead of the window. |
Notes
- A block is a starting point, not a black box: copy it, then edit the copy and the content inline.