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
| LIBRARY | CALLS IT |
|---|---|
| shadcn/ui | Navigation Menu |
| MUI | AppBar |
| Mantine | AppShell.Header |
| Bootstrap | Navbar |
| Chakra UI | No 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.
Settings
Colors
Pick, eyedrop, or generate a color, then choose Custom under Color above.
Passes AA · 6.9:1
Text color is chosen for you.
Start
End
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.