Fluid Navbar
An expanding navigation bar with image-backed dropdown panels, responsive sizing, and hover or click interactions.
Installation
- 1
Install the component:
- 2
Usage:
jsxapp/page.jsx
import Link from "next/link";import ALogo from "@/assets/ALogo";import FluidNavbar from "@/registry/blocks/FluidNavbar";const AMINES_NAV_MENU = { Components: [ { label: "Buttons", href: "/components/button", description: "Tactile micro-interactive button variants with spring physics", image: "/demo/button.png", tag: "Micro-interaction", }, { label: "Split Stack", href: "/components/split-stack", description: "Interactive layered card stack with fluid drag physics", image: "/bg.jpg", tag: "Interactive Cards", }, { label: "Split Stack Photo", href: "/components/split-stack-photo", description: "Smooth photographic stack with 3D tilt & swipe controls", image: "/bg2.jpg", tag: "Gallery Showcase", }, { label: "Split Stack Particles", href: "/components/split-stack-particles", description: "Dynamic particle-infused cards with reactive velocity", image: "/bg3.jpg", tag: "Particle FX", }, ], Illustrations: [ { label: "Mechanical Keyboard", href: "/illustrations/keyboard-illustration", description: "Physical mechanical keyboard with keycap clicks & trigger states", image: "/demo/keyboard.png", tag: "Hardware Motion", }, { label: "Note Folder", href: "/illustrations/note-folder", description: "Tactile interactive folder with draggable document sheets", image: "/demo/notesfolder.png", tag: "Tactile Documents", }, { label: "Amines Showcase", href: "/illustrations", description: "Handcrafted dynamic vector motion illustrations and scenes", image: "/demo/amines.png", tag: "Creative Motion", }, ], Blocks: [ { label: "Fluid Navbar", href: "/blocks/fluid-navbar", description: "Expanding glass pill with direction-aware slide & image preview", image: "/demo/amines.png", tag: "Navigation Bar", }, { label: "Pricing Section", href: "/blocks/pricing-block", description: "Conversion-optimized pricing with text morphing & step glitter", image: "/bg.jpg", tag: "Marketing Section", }, { label: "Logo Cloud", href: "/blocks/logo-cloud", description: "Infinite marquee carousel with cursor-centered photo reveals", image: "/bg4.jpg", tag: "Social Proof", }, ], Pricing: "/#pricing",};export default function Page() { return ( <FluidNavbar position="fixed" offset={100} logo={ <Link href="/" className="group flex items-center gap-2 outline-none" aria-label="Amines homepage" > <ALogo size={24} className="text-white transition-transform duration-300 group-hover:scale-110" /> <span className="shrink-0 text-[14px] font-semibold tracking-tight text-white/95"> Amines UI </span> </Link> } menu={AMINES_NAV_MENU} cta={{ label: "Get Lifetime", href: "/#pricing", }} expandedWidth={780} panelHeight={350} backdrop={true} /> );}