Report a problem or share feedback← Catalog
Floating Navbar
curatedtheme-awarefreesmoothui/floating-navbar
A FloatingNavbar component for SmoothUI.
$
npx shadcn@latest add @smoothui/floating-navbarnpm deps: motion
Our notes
Floating pill navbar that tightens its padding after 120px of scroll, hides on scroll-down and returns on scroll-up, with a layoutId pill behind the active link. bg-background/90 + backdrop-blur, theme tokens; focus ring uses brand. Positioned absolute — pass className="fixed" for a page navbar. Hide-on-scroll is disabled under reduced motion. Marketing pages only (see the navigation playbook's scroll-aware direction).- Source
- SmoothUI
- Kind
- component
- Categories
- navigation
- Use as
- drop-in — replaces your component
- Applies to
- navigation
- Motion
- on scroll, state · subtle · motion · medium cost · respects reduced motion
- Tags
- navbar, navigation, scroll, pill, sticky, blur, spring, complexity-medium, reduced-motion
- Licence
- MIT ("MIT License — Copyright (c) 2024 Eduardo Calvo", github.com/educlopez/smoothui).
- Live demo
- smoothui.dev
- Docs
- smoothui.dev
Similar
Compare all 4 →- Resizable Navbaraceternity/resizable-navbarNavbar that shrinks into a pill on scroll — the standard 'modern landing page' nav.
- Toolbar Dynamicmotion-primitives/toolbar-dynamicToolbar that expands into a search/input panel. Hard-codes zinc/white — swap to bg-popover/border/text-muted-foreground before using.
- Floating Navbaraceternity/floating-navbarA sticky Navbar that hides on scroll, reveals when scrolled up.