design-infraGitHub
Report a problem or share feedback← Catalog

Floating Navbar

curatedtheme-awarefree

smoothui/floating-navbar

A FloatingNavbar component for SmoothUI.

scroll · state — subtledrop-inRefinedPremium
$npx shadcn@latest add @smoothui/floating-navbar

npm 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