A calm sticky navbar for a property development: a text wordmark, five quiet links, a phone link and a compact pill button that rise in on mount, a hairline under the bar that fades in once the page has scrolled, and an always-mounted mobile panel toggled by the menu button whose links settle in one after another.
A calm sticky navbar for a property development's sales site: a text wordmark on the left, five quiet links in the middle, a phone link and a compact pill button on the right, all rising in on mount. A hairline under the bar stays hidden at the top of the page and fades in once you have scrolled, and on small screens the menu button opens an always-mounted panel whose links, phone and button settle in one after another.
Upgrade to Pro
Pro blocks install through the shadcn CLI with your license key and ship their full source. Docs and live previews stay open to everyone, so you can read every block's details first.
Swap YOUR_EMAIL and YOUR_KEY for the email and license key on your account. Find your license key on your account page.
Radix flavor
npx shadcn add "https://beste.dev/r/realestate73?email=YOUR_EMAIL&license_key=YOUR_KEY"Base UI flavor
npx shadcn add "https://beste.dev/r-base/realestate73?email=YOUR_EMAIL&license_key=YOUR_KEY"This installs the block to components/beste/block/realestate73.tsx plus the Button25 pill it uses for the call to action and the shadcn/ui button primitive behind it.
The installed file exports realestate73Demo alongside the block: the exact props behind the preview above. Spread it to get a working navbar in one line.
import { Realestate73, realestate73Demo } from "@/components/beste/block/realestate73";
export default function Page() {
return <Realestate73 {...realestate73Demo} />;
}Then replace the demo with your own props. Written out, a trimmed setup looks like this:
import { Realestate73 } from "@/components/beste/block/realestate73";
export default function Page() {
return (
<Realestate73
brand="Alder Row"
items={[
{ label: "Residences", href: "/residences" },
{ label: "Location", href: "/location" },
{ label: "Buying", href: "/buying" },
]}
phone={{ label: "+44 20 7946 0000", href: "tel:+442079460000" }}
button={{ label: "Register your interest", href: "/register" }}
labels={{ open: "Open menu", close: "Close menu" }}
/>
);
}| Prop | Type | Default | Description |
|---|---|---|---|
brand | string | – | Text wordmark on the left, linked to the home page. |
items | NavItem[] | [] | Links shown in the bar on desktop and in the panel on small screens. |
phone | NavItem | – | Phone link with a small handset icon; shown from the lg breakpoint and inside the mobile panel. |
button | ActionButton | – | Compact pill button on the right; tone falls back to dark. |
labels | { open?: string; close?: string } | {} | Accessible names for the menu button in its two states. |
className | string | – | Extra classes merged onto the header. |
type NavItem = { label: string; href: string };
type ActionButton = {
label: string;
href: string;
tone?: "dark" | "outline" | "primary" | "neutral";
};useScroll: it fades in once the page has scrolled more than 8 px, and also while the mobile panel is open so the panel reads as attached to the bar.aria-expanded and swaps its label between labels.open and labels.close.prefers-reduced-motion the mount entrances are skipped and the hairline switches without a fade.