DDBS UI
navigation

Mega Menu Header

A data-driven marketing header with mega panels (columns plus a feature block), scroll shrink, a CTA and a mobile accordion sheet.

npx shadcn@latest add https://ui.develop-better-solutions.com/r/mega-menu-header.json
Dependencies:lucide-react

Usage

mega-menu-header-example.tsx
"use client";

import { MegaMenuHeader } from "@dbs/ui";

export default function MegaMenuHeaderExample() {
  return (
    <div className="relative min-h-[460px] w-full">
      <MegaMenuHeader
        logo={<span className="text-xl font-semibold tracking-tight">Northfield</span>}
        cta={{ label: "Book a call", href: "#" }}
        utilities={<a href="#" className="text-sm font-medium text-ink-muted">Log in</a>}
        items={[
          {
            label: "Platform",
            columns: [
              { heading: "Products", links: [
                { label: "Analytics", href: "#", description: "Dashboards your whole team reads" },
                { label: "Automations", href: "#", description: "Workflows without code" },
              ] },
              { heading: "Developers", links: [
                { label: "API reference", href: "#", description: "REST and webhooks" },
                { label: "Status", href: "#", description: "Live uptime" },
              ] },
            ],
            feature: { title: "What is new in 4.2", text: "Faster charts and a calmer inbox.", href: "#", cta: "Read the notes" },
          },
          { label: "Pricing", href: "#" },
          { label: "Customers", href: "#" },
          { label: "Blog", href: "#" },
        ]}
        shrinkOnScroll={false}
      />
    </div>
  );
}