A header that starts tall and transparent over a hero, settles into a compact bar with a frosted background and hairline border once you scroll, hides while you read down and slides back as soon as you scroll up. A thin reading progress bar runs along the top, the current section is marked in the links, and keyboard focus always brings the bar back. An autoplay scrolls the demo page until the user takes over.
Included in Standard and aboveCompare plans
Live preview. Move the mouse, scroll and click inside the frame.
import { NavbarShrinkOnScroll } from "@/components/hyperblur-pro/navbar-shrink-on-scroll"
<NavbarShrinkOnScroll />| Prop | Type | Default | Description |
|---|---|---|---|
| brand | string | "Meridian" | Brand name. |
| links | { label: string; href?: string }[] | Stories, Guides, Essays, About | Links; without an href they scroll to the matching demo section and track it as the current one. |
| ctaLabel | string | "Subscribe" | Label of the call to action. |
| theme | "light" | "dark" | "light" | Color theme of the page and the compact bar; colors are --hbp-sos-* CSS variables. |
| hideOnScroll | boolean | true | Hides the bar while scrolling down and shows it on scroll up. |
| demo | boolean | true | Scrolls the page automatically until the user wheels, touches or presses a key. |
Source code is included in Standard and above