Skip to content

Mega menu

Sticky header with full-bleed mega-menu panels.

Usage

Usage
import { NavbarMenu } from '@/components/blocks/navbar-02'


<NavbarMenu />


// Swap in your own content
<NavbarMenu
  brandName="Launchpad"
  items={[
    {
      label: 'Products',
      groups: [
        {
          label: 'Platform',
          links: [
            { label: 'Hosting', href: '/hosting' },
            { label: 'Analytics', href: '/analytics' },
          ],
        },
        {
          label: 'Tools',
          links: [{ label: 'Status page', href: 'https://status.example.com', external: true }],
        },
      ],
    },
    { label: 'Pricing', href: '/pricing' },
  ]}
  actions={[
    { label: 'Log in', href: '/login', variant: 'secondary' },
    { label: 'Get started', href: '/signup', variant: 'primary' },
  ]}
/>

Install

pnpm dlx shadcn@latest add @pastaui-pro/navbar-02

Source

Props

Mega menu props
PropTypeDefaultDescription
logoReactNode= Half-filled circle markMark shown before the brand name.
brandNamestring= 'Keelson'Wordmark text next to the logo, also the link’s accessible name.
logoHrefstring= '/'Where the logo links to.
itemsNavbarMenuItem[]= Products / Resources / Customers / PricingTop-level items. Give an item an href for a plain link, or groups ({ label, links }) for a mega-menu panel. Links accept external: true to open in a new tab with an arrow.
actionsNavbarMenuAction[]= Book a demo / Log in / Start freeButtons on the right, each with label, href, and variant ('primary' | 'secondary'). The first primary action stays visible next to the menu button on mobile.
classNamestring= —Additional classes for the header.