# Shadcn Navbar blocks

> Top navigation bars with responsive menus, search, and user actions for web applications.

- Type: Pro blocks (Application)
- Page: https://web.dev.reui.io/blocks/application/navbar
- Blocks: 13
- Installs with a ReUI Pro or Ultimate license; setup: https://web.dev.reui.io/docs/license-setup

## When to use

- The top bar of a signed in product, with a breadcrumb or switchers, search, alerts, avatars or a user menu
- An editor toolbar with a back or close button, the page name and its run, publish or submit action
- A marketing site header with mega menu panels of linked pages and a Get Started button

## When not to use

- A whole product layout with a side rail, a header and the content area together: use the [App Shell blocks](https://web.dev.reui.io/blocks/application/app-shell.md)
- A keyboard palette that lists, groups and filters results as you type: use [Command](https://web.dev.reui.io/components/command.md) (`get_component("command")`)
- The account settings page a user menu opens, with team, billing and API key forms: use the [Profile blocks](https://web.dev.reui.io/blocks/application/profile.md)

## Agent notes

- `Navbar` takes no props, so every label, person and option it shows is fixed in the block; lift them into props to reuse it
- No button, link or menu item routes or calls an API; add an `onClick` or a real `href` where each one should go
- Each page.tsx adds only demo padding or dashed placeholder boxes around `Navbar`, none of which belongs in your layout

## Third-party libraries

- next-themes: [API reference](https://github.com/pacocoursey/next-themes#api), [docs](https://github.com/pacocoursey/next-themes), used by 6 of 13 blocks
- date-fns v4: [docs](https://date-fns.org/v4.1.0/docs/Getting-Started), used by 1 of 13 blocks
- React DayPicker v9: [API reference](https://daypicker.dev/v9/api), [docs](https://daypicker.dev/v9/start), used by 1 of 13 blocks

## Blocks

- [Project Workspace](https://web.dev.reui.io/blocks/application/navbar/navbar-1.md): Project workspace navbar with breadcrumb, line tabs, and a collaborator avatar stack. Best for line tabs with a count badge that fold into a phone menu, a hover widening Create New button and a +9 popover listing 12 collaborators.
- [Team Presence](https://web.dev.reui.io/blocks/application/navbar/navbar-2.md): Sticky workspace navbar with breadcrumb trail, team presence avatars, and filter and sort menus. Best for an email invite popover beside a +8 avatar stack, with All, Active and Archived filter and Date, Name and Status sort menus.
- [Org & Environment Switcher](https://web.dev.reui.io/blocks/application/navbar/navbar-3.md): Developer platform top navbar with breadcrumb org, project and environment switchers. Best for three chained switchers for organization, project and environment, each environment marked by a colored dot, beside an Upgrade button.
- [Admin Command Search](https://web.dev.reui.io/blocks/application/navbar/navbar-4.md): Admin console top navbar with centered Cmd+K command search and a notifications popover feed. Best for a wide centered search button that Cmd or Ctrl K also opens, with a New button and a 19 entry notification feed.
- [Workflow Editor](https://web.dev.reui.io/blocks/application/navbar/navbar-5.md): Compact workflow editor navbar with active toggle, Test Run action, and history. Best for an Active or Inactive Switch, a run history button, Test Run and a menu with Export JSON and Delete workflow.
- [Analytics Toolbar](https://web.dev.reui.io/blocks/application/navbar/navbar-6.md): Two-row analytics dashboard navbar with date range picker, compare toggle, and command-K search. Best for a spinning refresh button with an Off to 5m auto refresh select, over a second row with a single date Calendar popover and a Compare toggle.
- [CMS Publish Bar](https://web.dev.reui.io/blocks/application/navbar/navbar-7.md): CMS editor navbar with co-presence avatars and a split Publish button. Best for a split Publish button whose chevron offers Schedule for later and Save as draft, beside Preview and 3 viewer avatars.
- [Agent Marketplace](https://web.dev.reui.io/blocks/application/navbar/navbar-8.md): AI agent marketplace navbar with category filter pills, Deploy CTA, and notifications popover. Best for all, Code, Research and Data pills in the center, a Deploy button and an account menu with My Agents, Usage and API Keys.
- [Repo Branch Picker](https://web.dev.reui.io/blocks/application/navbar/navbar-9.md): Code editor app header with repo path breadcrumb and branch dropdown selector. Best for an org and repo path with a branch menu listing 4 branches, the default marked, plus Remix and Vite targets and a Run button.
- [API Developer Portal](https://web.dev.reui.io/blocks/application/navbar/navbar-10.md): API developer portal navbar with service switcher, HTTP request bar, and account menu. Best for an inline request bar of 5 HTTP methods, a path input and Send, after a radio switcher of OpenAI, Stripe and Supabase logos.
- [Design System Manager](https://web.dev.reui.io/blocks/application/navbar/navbar-11.md): Design system manager top navbar with center section tabs, version badge, and sync source switcher. Best for a version Badge, centered Patterns, Tokens, Icons and Motion tabs and a button that switches between 3 sync sources.
- [Marketing Mega Menu](https://web.dev.reui.io/blocks/application/navbar/navbar-12.md): Marketing navbar with icon mega-menu dropdowns and a sliding-arrow Get Started button. Best for public site links where Product and Company open 2 column panels of 8 and 6 described pages, plus a plain Pricing link.
- [Editor Action Bar](https://web.dev.reui.io/blocks/application/navbar/navbar-13.md): Compact editor action bar navbar with close button, document title, and submit action. Best for a close button and a truncating h1 title, a preview collapse toggle and a submit button that turns into Sent for review.

Every ReUI item has a twin like this one; the index is https://web.dev.reui.io/llms.txt. Agents with the ReUI MCP (https://web.dev.reui.io/docs/mcp) get the same guidance from the getters named above.
