Navbar
The bar across the top of a site or app, with the brand, main links and one call to action. On small screens the links collapse into a menu.
Add an Orvain Navbar for “Northwind” with the links “Product” (current), “Pricing”, “Docs” and “Blog”, and a “Get started” button on the right.
When to use#
- At the top of every page of a marketing site, or a product with a few top-level sections.
- For up to five or six main destinations. For more, group them or use a sidebar.
When not to use
- Use a Tab Menu Horizontal to move between sections within one page.
- Use a sidebar with a Tab Menu Vertical style list for products with deep navigation.
Anatomy#
Full width, white, with a hairline along the bottom.
Logo mark and name, linking to the home page.
The main destinations. The current one uses primary text on a soft surface.
One button at the end, such as Get started.
Replaces the links on small screens. Opens a panel below the bar.
The links stacked full width, with the call to action at the bottom.
States#
Brand, links and call to action in one row.
Brand and menu button only.
The panel opens below the bar. The menu icon becomes a close icon.
Marked with a surface and aria-current.
Links darken on hover. A ring shows on focus.
Source#
The Navbar ships in the free packages, @orvain/react and @orvain/vue, and in the Figma library with every variant and state shown above. The code on this page is the code you install.
Used in these blocks

