10% off on all-access. Use code SUPER10.
    d :
    h :
    m :
    Logo

    Resizable Navbar

    A navbar that changes width on scroll, responsive and animated.

    Check the navbar at the top of the container

    For demo purpose we have kept the position as Sticky. Keep in mind that this component is fixed and will not move when scrolling.

    The

    First

    Rule

    Of

    F

    Club

    Is

    You

    Do NOT TALK about

    F Club

    Installation

    Run the following command

    npx shadcn@latest add @aceternity/resizable-navbar

    Props

    Resizable Navbar Props

    PropTypeDefaultDescription
    childrenReact.ReactNode-Child elements to render inside the navbar
    classNamestring-Additional CSS classes to apply to the navbar
    PropTypeDefaultDescription
    childrenReact.ReactNode-Child elements to render inside the nav body
    classNamestring-Additional CSS classes to apply to the nav body
    visiblebooleanfalseControls the visibility state of the nav body
    PropTypeDefaultDescription
    itemsArray<{ name: string, link: string }>-Array of navigation items with name and link
    classNamestring-Additional CSS classes to apply to the nav items
    onItemClick() => void-Callback function when a nav item is clicked

    MobileNav

    PropTypeDefaultDescription
    childrenReact.ReactNode-Child elements to render inside the mobile nav
    classNamestring-Additional CSS classes to apply to the mobile nav
    visiblebooleanfalseControls the visibility state of the mobile nav

    MobileNavHeader

    PropTypeDefaultDescription
    childrenReact.ReactNode-Child elements to render inside the mobile nav header
    classNamestring-Additional CSS classes to apply to the mobile nav header

    MobileNavMenu

    PropTypeDefaultDescription
    childrenReact.ReactNode-Child elements to render inside the mobile nav menu
    classNamestring-Additional CSS classes to apply to the mobile nav menu
    isOpenboolean-Controls whether the mobile menu is open
    onClose() => void-Callback function when the mobile menu is closed

    MobileNavToggle

    PropTypeDefaultDescription
    isOpenboolean-Controls whether the mobile menu is open
    onClick() => void-Callback function when the toggle is clicked
    PropTypeDefaultDescription
    hrefstring-URL for the button link
    asReact.ElementType"a"HTML element type to render (a or button)
    childrenReact.ReactNode-Child elements to render inside the button
    classNamestring-Additional CSS classes to apply to the button
    variant"primary" | "secondary" | "dark" | "gradient""primary"Visual style variant of the button

    Build websites faster and 10x better than your competitors with

    Aceternity UI Pro

    Next.js 15, Tailwind CSS v4 and Motion for react powered templates

    100+ templates and blocks combined

    Ready to copy paste component blocks, save days of development time

    Aceternity UI Pro Demo - Light Mode
    Logo
    Aceternity UI

    Access an ever-growing collection of premium, meticulously crafted templates and Component Blocks.

    A product by Aceternity
    Building in public at @mannupaaji

    © 2026 Aceternity Labs LLC. All Rights Reserved.