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

    Sticky Banner

    A banner component that sticks to top, hides when user scrolls down

    Announcing $10M seed funding from project mayhem ventures. Read announcement

    Installation

    Run the following command

    npx shadcn@latest add @aceternity/sticky-banner

    Examples

    Sticky banner

    Announcing $10M seed funding from project mayhem ventures. Read announcement

    Props

    PropTypeDefaultDescription
    classNamestringundefinedOptional CSS class to apply to the banner
    childrenReact.ReactNodeRequiredContent to display inside the banner
    hideOnScrollbooleanfalseWhen true, hides the banner after scrolling down 40px

    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.