Navigation bar: Guidelines
Navigation bars provide access to three to five destinations

Usage
Navigation bars provide access to three to five destinations. The nav bar is positioned at the bottom of windows for convenient access.
Each destination is represented by an icon and label text. One navigation destination is always active.
When a navigation bar icon is tapped or focused, people are taken to the navigation destination associated with that icon.

Navigation bars should be used for:
- Three to five main pages in the product
- Mobile or tablet only
Navigation bars shouldn’t be used for accessing single tasks, such as viewing one email.

The navigation items can be vertical or horizontal.
- Use vertical items in compact windowsWindow widths smaller than 600dp, such as a phone in portrait orientation.More on compact breakpoints, like mobile
- Use horizontal items in medium windowsWindow widths from 600dp to 839dp, such as a tablet or foldable in portrait orientation.More on medium breakpoints, like tablets

For products with more than five navigation items, don’t use a navigation bar; the elements may collide and there likely won’t be enough space for translated text.
Instead, consider using tabsTabs organize content across different screens and views.More on tabs to organize similar content within a page, or hide the navigation behind a menu icon using a modal expanded navigation railNavigation rails let people switch between UI views on mid-sized devices.More on navigation rails.





Anatomy

- Container
- Icon
- Label text
- Active indicator
- Large badge (optional)
- Small badge (optional)
Container
The container should always be placed at the bottom of the product and span the full length of the window. Navigation items are centered within the container.
The container has a color fill to provide separation from other content.

Navigation items
Navigation items hold all elements for each destination: the icon, label text, and active indicator. They can be vertical, with the text below the icon and indicator, or horizontal, with the icon and text beside each other inside the indicator.
Vertical items are best in compact windowsWindow widths smaller than 600dp, such as a phone in portrait orientation.More on compact breakpoints, and horizontal items are best in medium windowsWindow widths from 600dp to 839dp, such as a tablet or foldable in portrait orientationMore on medium breakpoints.
Horizontal items are centered in the nav bar with outer margins.

Icons
Navigation rail items must use icons that symbolize the content of their page. Browse popular icon.
Use a filled icon for the active destination and outlined icons for inactive destinations. If an icon doesn’t have a filled version, apply semibold weight to the icon instead.


Active and inactive icons must have a minimum 3:1 contrast ratio with the container.

Active indicator
The active indicator shows which page from the nav bar is currently being displayed.


Label text
The label text should be a short, meaningful description of each navigation destination and another way for people to understand an icon’s meaning.
All navigation items require a label text. It should be 1-2 words.




Badges (optional)
Navigation bars can display badges in the upper right corners of the destination icon.
Badges can contain dynamic information, such as the number of new messages.


Placement
The floating action button (FAB) is placed above the navigation bar. Nav bars are always placed at the bottom of the window.


Navigation bars can be temporarily covered by dialogs, bottom sheets, navigation drawers, the on-screen keyboard, or other elements needed to complete a flow. They should not be permanently obstructed on any screen.
Adaptive design
Adaptive design allows an interface to respond or change based on context, such as the user, device, and usage. More on adaptive design
Resizing
Only use navigation bars for compactWindow widths smaller than 600dp, such as a phone in portrait orientation.More on compact breakpoints and mediumWindow widths from 600dp to 839dp, such as a tablet or foldable in portrait orientation.More on medium breakpoints breakpoints.
Compact: For narrow windows, use a navigation bar or modal navigation rail.
Medium: Use a navigation bar or navigation rail. Decide based on whether horizontal or vertical space is more important.
Expanded and extra-large: Use a navigation rail instead. Decide based on available window space and the number of navigation destinations.
The navigation bar container spans 100% of the window width.

The navigation bar is used on smaller devices. It’s not intended for desktop.

Presentation
In medium breakpoints, use horizontal nav items to better use available space.
Horizontal nav items should remain centered with the same padding at each breakpoint.

Behavior
Navigation
When selecting a navigation bar item not currently selected, the product navigates to that destination’s screen using a top level transition pattern. It can either remember where you left off, or reset to the default view.
- Preserve state: If someone has interacted with this destination, it returns to their scroll position, current tab, and in-line search status.
- Reset state: Any prior user interactions are reset, including scroll position, tab selection, and in-line search.
Choose the behavior that best suits the product and user needs. For example, an app that requires frequent switching between sections should preserve each section’s state.
Re-selecting the currently active destination should reset the scroll position to the top of the page.
Don't swipe between destinations
Swiping across the screen does not navigate between destinations, and is not supported by the navigation bar. Swipe behavior should be reserved for related items, such as cards in a carousel, or actions such as archiving a list item.
Scrolling
Upon scroll, the navigation bar can appear or disappear.
Don’t hide the navigation bar on scroll when a screen reader is active.
Selection
The icon becomes filled and the active indicator expands from the center of the icon when switching between destinations.
The active indicator animation should only apply on one axis to better represent a flat, shared plane.
When a destination is tapped, the destination screens use a top level transition pattern. In addition, the icon becomes filled and the active indicator expands from the center of the icon.