Skip to content

Navigation

Navbar

Also calledtop barheader navmenu barnavigation barapp bar

A horizontal bar at the top of the page holding the logo, the main navigation links, and often a call-to-action button.

How people describe it

  • “bar across the top of the page with links”
  • “logo on the left and menu links on the right”
  • “header with a button on the far right”

Good for

  • Primary site navigation
  • Marketing and app headers

Don’t mix it up with

  • Slides in on demand; the navbar is always visible.

What your library calls it

LIBRARYCALLS IT
shadcn/uiNavigation Menu
MUIAppBar
MantineAppShell.Header
BootstrapNavbar
Chakra UINo built-in navbar (compose with Flex)

Accessibility checklist

  • Wrap the links in a nav element with an aria-label
  • Mark the current page with aria-current
  • Keep the hamburger button labelled

Try it

Switch to Mobile to see the menu collapse behind a button.

Prompt

Add a sticky top navbar: logo left, links center, CTA right.

~15 estimated prompt tokensDetailed: ~60 estimated prompt tokens

Rough estimate for prompt text only; actual counts vary by model and context.

<header>
  <nav aria-label="Main">
    <a href="/">Logo</a>
    <a href="/docs">Docs</a>
    <a href="/pricing">Pricing</a>
    <a href="/signup">Sign up</a>
  </nav>
</header>

Used in

Explore website blueprints that use this component.