Figma component
Overview
The Navbar lets users move between the main destinations of a product and shows where they are. It is a horizontal group of links; the current destination is highlighted.
Key features
- Composable: the Navbar is a container with an Items slot; each item is configured on its own.
- Four states: Default, Hover, Active (current destination) and Disabled.
- Optional icons: leading and trailing Nova icons that follow the item state.
- Notification: a count badge, shown from 1; a count of 0 is never displayed.
- Themes: Spark and Ocean, light and dark.
Anatomy
- Item (active): one destination. The container takes the state background.
- Leading icon (optional): a Nova icon before the label.
- Label: short name of the destination.
- Notification (optional): the shared notification bullet with a count.
- Trailing icon (optional): a Nova icon after the label.
- Item (default): the Navbar holds as many items as needed in its Items slot.
Properties
|
Figma |
Code (nv-navbar-item) |
Notes |
|---|---|---|
|
State |
current, disabled |
Active is current, set by the application router. Hover and focus are native states. |
|
Label |
label |
Required. Each item is a link: href is required in code. |
|
Show leading icon, Leading icon |
leading-icon |
Nova icon name. No icon means hidden. |
|
Show trailing icon, Trailing icon |
trailing-icon |
Nova icon name. No icon means hidden. |
|
Show notification, Number |
notification |
Absent or 0 means hidden; the badge appears from 1. |
|
— |
notification-label |
Code only. What screen readers announce for the count; {count} is replaced by the number. Default: Notifications: {count}. Translate it into the language of your application. |
|
— |
aria-label or aria-labelledby on nv-navbar |
Code only. Names the navigation landmark for screen readers. Always set one. |
|
Has menu |
— |
Not in this release. Keep it off in product designs. |
Look and feel
States
- Default: an enabled destination at rest.
- Hover: pointer feedback.
- Active: the current destination. Use one per Navbar.
- Disabled: an unavailable destination, at reduced opacity and not activatable.
Notification
The notification badge follows the item state. It sits next to the label, so it has no contrasting border.
Themes
Spark and Ocean, in light and dark mode.
Behavior
- Items are native links. Open in a new tab and context menus keep working.
- The application sets the current item after navigation. At most one item is current; none is valid when the page is outside the group.
- A disabled item cannot be activated by any means, not only visually.
- Items wrap to a new line when space runs out. No mobile collapse or overflow menu is defined yet.
Accessibility
- Rendered as a labelled navigation landmark containing a list of links. Do not use menu or menubar roles.
- The current item has aria-current="page".
- Tab and Shift+Tab move between enabled links; Enter follows a link. There is no arrow-key navigation.
- Icons are decorative. A notification count gets an accessible description without replacing the label. Set notification-label to translate it.
- Contrast is checked on all themes (WCAG 2.1 AA). Known issue: the Active label in Spark light is 4.41:1, under the 4.5:1 target.
Usage
Mark only the current destination as active and keep labels short.
Don't show several active items, and don't add a chevron: dropdown menus are not available yet.
Tokens
Color tokens: components/navbar/background, background-hover, background-active, text, text-hover, text-active, icon, icon-hover, icon-active.
Spacing tokens: navbar/container/gap, navbar/item/gap, navbar/item/padding-x, navbar/item/padding-y, navbar/item/icon-size, navbar/item/radius, navbar/disabled/opacity.
Related
- Sidebar: vertical navigation for the whole application.
- Tabs: switch between views inside a page; Tabs control content panels, the Navbar navigates between pages.
Links
The Figma file contains the latest UI designs, while the links to Web Component, Blazor, Angular, React, and VueJS provide a live demo of components in various states, themes, and interactions.
Feedback
Have feedback, an idea, or a bug to report? Head over to our Contributions page.