Centered floating navbar with rounded pill shape, backdrop blur effect, and compact layout. Perfect for modern landing pages and portfolios wanting a minimal floating navigation style.
A compact navbar that floats off the viewport edge instead of spanning full width: it sits inside a max-w-4xl wrapper with its own margin, and the inner <nav> is a bordered, backdrop-blurred pill (rounded corners on mobile, fully rounded on desktop) rather than a bar with a bottom border. A position prop pins the whole thing near the top or bottom of the viewport, which suits landing pages and portfolios that want a minimal, detached navigation style.
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://ui.beste.co/r/navbar37?email=YOUR_EMAIL&license_key=YOUR_KEY"Base UI flavor
npx shadcn add "https://ui.beste.co/r-base/navbar37?email=YOUR_EMAIL&license_key=YOUR_KEY"This installs the block to components/beste/block/navbar37.tsx and the shadcn/ui dependencies it needs (button).
The installed file exports navbar37Demo alongside the block: the exact props behind the preview above. Spread it to get a working navbar in one line.
import { Navbar37, navbar37Demo } from "@/components/beste/block/navbar37";
export default function Layout() {
return <Navbar37 {...navbar37Demo} />;
}Then replace the demo with your own props. Written out, a trimmed setup looks like this:
import { Navbar37 } from "@/components/beste/block/navbar37";
export default function Layout() {
return (
<Navbar37
logo={{ text: "Float", href: "/" }}
navItems={[
{ label: "Home", href: "/" },
{ label: "Features", href: "/features" },
{ label: "Pricing", href: "/pricing" },
]}
actionButton={{ label: "Get Started", href: "/signup" }}
position="top"
/>
);
}| Prop | Type | Default | Description |
|---|---|---|---|
logo | { text: string; href?: string } | – | Brand text and link, shown at the left |
navItems | NavItem[] | [] | Desktop and mobile nav links, in order |
actionButton | { label: string; href?: string } | – | Single CTA rendered right of the nav; omit to hide it |
position | "top" | "bottom" | "top" | Whether the floating pill sticks near the top or bottom of the viewport |
className | string | – | Extra classes for the outer wrapper <div> |
type NavItem = { label: string; href?: string };<div> is sticky top-0 with a top-4 or bottom-4 offset depending on position, keeping the pill floating a fixed gap from the edge instead of flush against it.<nav> itself uses bg-background/95 with backdrop-blur (and a supports-[backdrop-filter] fallback opacity), so content scrolling underneath shows through softly.rounded-xl on mobile and rounded-full from md up, giving a boxier shape on small screens and a true pill on desktop.md and above; below that a hamburger button toggles a conditionally rendered panel ({mobileMenuOpen && ...}) inside the same pill, stacking links and a full-width button.actionButton, not an array, so this block supports exactly one CTA by design.navbar63
A floating rounded-full navbar island resting on a muted band — wordmark, quiet links and a pill CTA, with a rounded mobile menu card that drops below.
navbar30
Symmetrical navbar with centered logo flanked by navigation links on both sides and dropdown menus. Perfect for fashion brands and lifestyle sites wanting balanced visual hierarchy.
navbar50
Detached floating navbar card with a square-mark wordmark, uppercase links and a compact seal CTA — the mobile menu unfolds inside the card.
navbar44
Symmetric navbar with links on the left, a square-mark wordmark centered and a seal CTA on the right, plus a tile-grid mobile menu.
navbar36
Navbar with tab-style navigation supporting underline or pill active states for app-like navigation. Perfect for dashboards and admin panels with section-based interfaces.
navbar59
Editorial single-row navbar — bold wordmark, quiet bold links, and an outline pill CTA. Collapses to a clean full-height mobile menu.