Introducing Aceternity UI Pro - 70+ premium component packs and templates to build amazing websites.
Logo

Sticky Banner

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

Open in

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

Open in

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

70+ templates and component blocks combined

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

Aceternity UI Pro Demo - Light Mode
A product by Aceternity
Building in public at @mannupaaji