Headline Mega

About this block

Headline MegaPRO

A bar with brand, links and two buttons where Why us opens a full-width panel split in half: a headline, a paragraph and two buttons on the left, two columns of described links on the right. On a phone a panel slides down with the action buttons side by side at its top, then the links and the pitch. Every panel stays in the markup and is toggled with CSS.

A bar with the brand, links and two buttons, where the Why us trigger opens a full-width panel split in half. The left half makes the pitch with a headline, a paragraph and two buttons; the right half lists two columns of described links. On a phone a panel slides down with the action buttons side by side at its top.

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://beste.dev/r/navbar110?email=YOUR_EMAIL&license_key=YOUR_KEY"

Base UI flavor

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

This installs the block to components/beste/block/navbar110.tsx plus the shadcn button primitive it uses.

Quick start

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

tsx
import { Navbar110, navbar110Demo } from "@/components/beste/block/navbar110";

export default function Page() {
  return <Navbar110 {...navbar110Demo} />;
}

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

tsx
import { Navbar110 } from "@/components/beste/block/navbar110";

export default function Page() {
  return (
    <Navbar110
      brand="Alder"
      mega={{
        label: "Why us",
        heading: "Close the books in days, with a ledger your auditors already trust.",
        description: "Alder reconciles every account overnight and keeps a clean trail behind each number.",
        buttons: [
          { label: "Read the story", href: "/story" },
          { label: "Talk to sales", href: "/sales", variant: "outline" },
        ],
        columns: [
          {
            title: "Reasons",
            links: [
              { title: "Security", description: "SOC 2 Type II, SSO and audit logs", href: "/security" },
              { title: "Integrations", description: "Banks, ERPs and payroll in one place", href: "/integrations" },
            ],
          },
          {
            title: "Proof",
            links: [
              { title: "Customer stories", href: "/customers" },
              { title: "Reviews", href: "/reviews" },
            ],
          },
        ],
      }}
      links={[
        { label: "Product", href: "/product" },
        { label: "Pricing", href: "/pricing" },
      ]}
      buttons={[
        { label: "Log in", href: "/login", variant: "ghost" },
        { label: "Book a demo", href: "/demo" },
      ]}
      labels={{ menu: "Open menu", close: "Close menu" }}
    />
  );
}

Props

PropTypeDefaultDescription
brandstring–Wordmark on the left
megaHeadlineMega–The trigger label and everything inside the split panel
linksNavItem[][]Plain links after the trigger
buttonsActionButton[][]Actions on the right of the bar; side by side at the top of the mobile panel
labels{ menu?: string; close?: string }{}Accessible names for the mobile toggle
classNamestring–Extra classes for the outer <header>
ts
type HeadlineMega = {
  label: string;
  heading: string;
  description: string;
  buttons: ActionButton[];
  columns: PanelColumn[];
};

type PanelColumn = {
  title: string;
  links: PanelLink[];
};

type PanelLink = {
  title: string;
  description?: string;
  href: string;
};

type NavItem = {
  label: string;
  href: string;
};

type ActionButton = {
  label: string;
  href: string;
  variant?: "default" | "outline" | "ghost" | "secondary";
};

Behavior notes

  • The desktop split panel and the mobile slide-down are server-rendered and always in the markup; each is shown or hidden with CSS classes rather than mounted on demand.
  • Why us opens on hover or click; hovering a plain link closes it, and each panel link reveals a small arrow on hover with a motion-safe slide.
  • The mobile panel animates grid-template-rows from 0fr to 1fr, is capped at calc(100vh - 4rem) with its own scroll, and shows a ghost bar button as outline so both inline buttons read as buttons.
  • Escape and a click outside the header close both panels; the pointer leaving the header closes the desktop panel; any link inside the mobile panel closes it.

More Navigation blocks

View all Navigation
PRO

navbar85

Split Links Tile Mega

PRO

navbar113

Pricing Preview Mega

PRO

navbar83

Three Column Product Mega

Get Pro