Navbar 7 - Floating pill that shrinks on scrollPro
A full-width header that detaches into a floating, bordered pill with a shadow once the page scrolls past a threshold, narrowing its width with a spring. Use it on long landing pages where the navigation should stay present but get out of the way.
About Navbar 7
A full-width header that detaches into a floating, bordered pill with a shadow once the page scrolls past a threshold, narrowing its width with a spring. Use it on long landing pages where the navigation should stay present but get out of the way.
Navbar 7 is a pro navbar block for React, built on shadcn/ui and Tailwind CSS with motion animations that respect reduced-motion settings. It ships as 123 lines of TypeScript you own: every piece of copy is a prop with a sensible default, so you can drop it in and replace the content without touching the layout.
- floating
- pill
- scroll
- shrink
- sticky
- spring
Installation
- Add the Chocolate UI registry to your
components.json(see the installation guide). - Run the shadcn CLI:
npx shadcn@latest add @chocolate/navbar-07Dependencies installed automatically: lucide-react, motion.
Uses: button, motion-presets, sheet, use-reduced-motion, utils.
Usage
import Navbar07 from "@/components/blocks/navbar-07"
export default function Page() {
return <Navbar07 />
}