Floating Capsule Navbar

About this block

Floating Capsule NavbarPRO

A navbar contained in a softly rounded, bordered capsule with a lowercase wordmark, uppercase links, an accent call to action, and a matching mobile panel.

A navbar rendered as a floating, softly rounded capsule: a bordered, shadowed bg-card bar inset from the page edges rather than a full-width bar, holding a lowercase wordmark, uppercase nav links, and an accent call-to-action. The mobile menu opens as a second matching rounded card directly beneath the capsule.

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.

Upgrade Now

Installation

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

bash
npx shadcn add "https://ui.beste.co/r/navbar74?email=YOUR_EMAIL&license_key=YOUR_KEY"

Base UI flavor

bash
npx shadcn add "https://ui.beste.co/r-base/navbar74?email=YOUR_EMAIL&license_key=YOUR_KEY"

This installs the block to components/beste/block/navbar74.tsx, the button21 component it uses for its call-to-action, and its dependencies.

Quick start

The installed file exports navbar74Demo alongside the block: the exact props behind the preview above. Spread it to get a working navbar in one line.

tsx
import { Navbar74, navbar74Demo } from "@/components/beste/block/navbar74";

export default function Layout() {
  return <Navbar74 {...navbar74Demo} />;
}

Then replace the demo with your own props. Written out, a trimmed setup looks like this:

tsx
import { Navbar74 } from "@/components/beste/block/navbar74";

export default function Layout() {
  return (
    <Navbar74
      brand="Acme"
      items={[
        { label: "Product", href: "/product" },
        { label: "Pricing", href: "/pricing" },
        { label: "Docs", href: "/docs" },
      ]}
      button={{ label: "Get started", href: "/signup" }}
    />
  );
}

Props

PropTypeDefaultDescription
brandstringWordmark text, rendered lowercase, linked to https://beste.co
itemsNavLink[][]Nav links inside the capsule
buttonActionLinkAccent call-to-action rendered via Button21; omit to hide it
classNamestringExtra classes for the outer <header>
ts
type NavLink = { label: string; href: string };
type ActionLink = { label: string; href: string };

Behavior notes

  • The nav bar itself is a rounded-md border bg-card capsule with a shadow, inset from the page edges by the <header>'s own padding, rather than spanning edge-to-edge like a typical navbar.
  • Because the capsule uses bg-card/text-card-foreground fixed surface tokens, its text stays legible on the card surface even if the surrounding page background differs.
  • The mobile menu (below lg) is not an overlay: it renders as a second rounded-md border bg-card panel stacked directly below the capsule, matching its styling.
  • There are no dropdowns; every item in items is a flat, single-level link.

More Navigation blocks

View all Navigation
PRO

navbar63

Floating Pill Navbar

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.

PRO

navbar71

Pill Menu Navbar

A light editorial navbar with a lowercase wordmark, soft muted nav pills that reveal hover dropdowns, a solid accent call to action, and a collapsing mobile menu.

PRO

navbar37

Floating Pill Navbar

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.

PRO

navbar58

Monogram Navbar

Minimal stacked navbar — a large primary logo square with the wordmark tucked into its corner, over a quiet ruled row of uppercase links. No buttons, no hamburger.

PRO

navbar72

Centered Link Navbar

A minimal navbar with a lowercase wordmark, absolutely centered uppercase text links, an accent call to action, and a collapsing mobile menu.

PRO

navbar50

Floating Card Navbar

Detached floating navbar card with a square-mark wordmark, uppercase links and a compact seal CTA — the mobile menu unfolds inside the card.