Prodular UI

Marketing navbar

Pro

The header of a marketing site: brand, links with menus and descriptions, and actions like Sign in and a call to action. Sticks to the top and shows its edge once the page scrolls; on phones the links move into a panel.

npx prodular-ui add marketing-navbar

Part of Prodular UI Pro. Preview and read the docs freely, install with a license. See pricing

A product site

Product opens a two column menu with icons, Customers a single column. Narrow the window to see the phone panel.

Anatomy

<MarketingNavbar  brand={<Logo />}  links={links}  actions={<><Button variant="ghost">Sign in</Button><Button>Start free</Button></>}  linkComponent={Link}/>

Guidance

Use it when

  • The top of every marketing page, once.
  • Menus for groups of three or more pages; plain links for the rest.
  • Two actions at most: a quiet Sign in and one call to action.

Avoid

  • More than five top level items.
  • Inside the app. Use App shell there.

Rules for AI agents

Published in llms-full.txt, the registry and the MCP server, so coding agents follow them when they build with this component.

  • Describe links as { label, href } or { label, items: [{ label, href, description?, icon? }] }.
  • Pass linkComponent={Link} from next/link for client routing.
  • Keep sticky on; the edge and shadow appear only after scrolling, so the hero stays clean.
  • Its width matches Section; pass the same width as your sections if you change it.

API

MarketingNavbar

PropTypeDefaultDescription
brandReactNodeThe logo, usually a link home.
linksMarketingNavLink[]Links and menus.
actionsReactNodeRight side buttons, also shown in the phone panel.
stickybooleantrueSticks to the top.
width / linkComponentSection width / ElementTypeContainer width and the link element.

Installation

The Prodular UI CLI adds the source to components/ui with everything it depends on. In a project that already uses shadcn/ui, the shadcn CLI installs it from the Prodular registry too. See Installation for the first setup.

npx prodular-ui add marketing-navbar# or, with the registry in components.jsonnpx shadcn@latest add @prodular/marketing-navbar