The top app bar is a container enabling users to navigate mobile products or experiences. It’s usually placed at the top of an app or website and turns into a horizontal navigation bar on larger screens.

Also known as: App header, navigation bar, menu bar, app bar, NavigationBar (iOS), Toolbar (Android).

Anatomy

A top app bar with a hamburger menu featured by callout A indicating the menu icon, a 'VISA' logo featured by callout B indicating the brandmark, a search icon featured by callout C indicating the global search button, and an avatar icon featured by callout D indicating the user profile button.

A. Menu icon (optional): Menu containing links to navigate through the application.
B. Brand mark (optional): Visual element representing Visa, a partner brand, or a fictitious brand associated with the product.
C. Global search (optional): Icon button prompting a global search bar to find content across the whole site or app.
D. User profile (optional): Avatar component representing the current user’s account.

Usage

When to use and when not to use top app bar
Component When to use When not to use
DefaultAs a simple solution for navigating mobile applications.For larger screen sizes. Use horizontal navigation instead.
With searchTo provide easy access to global search.If the app is designed for a specific task and doesn’t contain a lot of searchable content.
Page titleFor the child pages of an application.If your app only has one page, a page title may not be necessary.

Best practices

  • Reference Application layouts for help deciding which navigation component is best for your use case.
  • Ensure the order of the navigation items is consistent throughout the application, as changing the order may confuse users.
  • Consider making the brand mark and/or application name function as a link to the homepage of the experience.
  • Ensure the top app bar is visible at all times, or have a clear way to bring it back into view when hidden.
  • Follow all guidance found in Search, Navigation drawer, and Avatar when implementing those items in the navigation.

Icons

Top app bars use icons to save space and enable quick access to important functions. There are two types of icons, leading and trailing.

Leading icons

The leading icon refers to the icon on the left side of the screen for left-to-right languages. This icon is reserved for navigational purposes. In the default view, it’s used to expand a navigation drawer. In certain cases, it can be replaced with a upward or backward arrow to move users to their previous screen. To learn more, reference the Page title section below.

A top app bar with emphasis on leading hamburger menu icon
  • Use one leading icon for navigation purposes only.

Trailing icons

Trailing icons refer to the icon(s) on the right side of the screen for left-to-right languages. These icons are used to represent common actions, like global search or account settings.

A top app bar with emphasis on trailing avatar icon.
  • Place the most-used actions toward the left and least-used actions on the right.
  • Limit trailing icons to one or two to avoid overcrowding the menu.
  • Only use commonly understood icons to ensure their purpose is clear.

Behaviors

Scrolling

By default, the top app bar is hidden when the user scrolls down on the page to provide full use of the screen. If the top app bar contains important actions, it can be fixed at the top of the screen for easy access.

Scrolls with content

Top app bar titled 'Newsfeed' with a back button on the left and a search button on the right. Top app bar slowly moves out of view window as content is scrolled.

Stays fixed at top

Top app bar titled 'Newsfeed' with a back button on the left and a search button on the right. Top app bar stays in position as content is scrolled.

Page title

The page title variant is a modified top app bar used for child pages in an application. In this use case, the brandmark is replaced by the current page title, and the hamburger menu is a back arrow enabling users to navigate back to the parent page.

Top app bar titled 'Newsfeed' with a back button on the left and a search button on the right.

Top app bars as chat navigation

Top app bars can be used as navigation components within chat layouts. The icons can be further customized based on the layout or the intended user function. When implemented in panel chats, top app bar buttons may include a hamburger menu or options menu. The modal chat is less complex and may include minimize and close buttons. Reference Chat for more information.

Top app bar with hamburger menu on the left, brandmark centered, and user profile button on the right

Platform considerations

Mobile

Top app bars are used for mobile or very small responsive web screens. As screen size increases, its behavior changes to utilize the additional space.

Two modal chats with different top app bars. One on the left with 'Chat name' as the title, a hamburger menu, and a three dot button and one on the right with 'Chat' as the title, a minimize button, and a close button

768 px (tablet)

As screen size increases for tablets or smaller web screens, the top app bar turns into the 786px horizontal navigation component. The lower the resolution, the simpler the navigational bar appears in the viewport. At this size, links are placed in the hamburger menu and the application name and brand mark are centered instead of left-aligned.

Top app bar with hamburger menu on the left, brandmark and application name centered, and search button on the right

Web

When the screen size increases past 768 px, the top app bar turns into a horizontal navigation component. At this size, links are displayed horizontally.

Horizontal navigation with brandmark 'VISA Digitial Currency Hub', links 'L1 Label 1', 'L1 Label 2', 'L1 Label 3' and trailing search and user profile icons.

Content

  • Write all content in sentence case, except for acronyms or proper nouns, like the application name.
  • Don’t use punctuation for navigation items.
  • Ensure labels match page titles to enhance the user’s understanding of the site’s information hierarchy.
  • Follow all best practices and guidelines implementing links. Reference Link for more information.
  • Limit labels to a few brief words to prevent unnecessary reflow.
  • Reference Grammar and punctuation to learn how to use parallel structure for consistent phrasing.