Skip to content
Material Design 3
Main Navigation
v3
v2
v1

English

简体中文
繁體中文
Español
Français
Русский
Português – Brasil
Deutsch
日本語
한국어
Italiano
Polski
Türkçe
čeština
magyar

English

简体中文
繁體中文
Español
Français
Русский
Português – Brasil
Deutsch
日本語
한국어
Italiano
Polski
Türkçe
čeština
magyar

Appearance

Sidebar Navigation

Foundations

Accessibility

Overview: Principles

Overview: Assistive technology

Designing: Overview

Designing: Color contrast

Designing: Structure

Designing: Flow

Designing: Elements

Writing and text: Best practices

Writing and text: Text truncation

Writing and text: Text resizing

Building for all: User needs

Building for all: Co-design

Content design

Overview

Alt text

Global writing: Overview

Global writing: Word choice

Notifications

Style guide: UX writing best practices

Style guide: Word choice

Style guide: Grammar and punctuation

Customizing Material

Devices

Watches: Overview

Watches: Foundations

Watches: Styles

Watches: Layout

XR

Design: Overview

Design: Interaction

Design: Layout

Design: Accessibility

Components: Overview

Components: App bars

Components: Dialogs

Components: Nav bar

Components: Nav rail

Components: Toolbars

Design tokens: Overview

Design tokens: How to use tokens

Interaction

Gestures

Inputs

Selection

States: Overview

States: State layers

States: Applying states

Layout

Overview: Overview

Overview: Parts of layout

Overview: Adaptive design

Scaffold: Overview

Scaffold: Bars

Scaffold: Rails

Scaffold: Panes

Grids & spacing: Overview

Grids & spacing: Grids

Grids & spacing: Spacing

Grids & spacing: Density

Breakpoints: Overview

Breakpoints: Compact

Breakpoints: Medium

Breakpoints: Expanded

Breakpoints: Large & extra-large

Bidirectionality & RTL

Canonical examples: Overview

Canonical examples: Feed

Canonical examples: List-detail

Canonical examples: Supporting pane

Usability: Overview

Usability: Applying M3 Expressive

Material A-Z

Styles

Color

Color system: Overview

Color system: How the system works

Color roles

Color schemes

Choosing a scheme

Static: Baseline

Static: Custom brand

Dynamic: Choosing a source

Dynamic: User-generated source

Dynamic: Content-based source

Advanced: Overview

Advanced: Apply colors

Advanced: Define new colors

Advanced: Adjust existing colors

Color resources

Elevation: Overview

Elevation: Applying elevation

Elevation: Tokens

Icons: Overview

Icons: Designing icons

Icons: Applying icons

Motion

Motion physics system: How it works

Motion physics system: Specs

Easing and duration: Applying easing and duration

Easing and duration: Tokens & specs

Transitions: Transition patterns

Transitions: Applying transitions

Shape: Overview & principles

Shape: Corner radius scale

Shape: Shape morph

Spacing: Overview

Spacing: Applying spacing

Spacing: Tokens

Typography: Overview

Typography: Fonts

Typography: Type scale & tokens

Typography: Applying type

Typography: Editorial treatments

Components

App bars: Overview

App bars: Specs

App bars: Guidelines

App bars: Accessibility

Badges: Overview

Badges: Specs

Badges: Guidelines

Badges: Accessibility

Buttons

All buttons

Button groups: Overview

Button groups: Specs

Button groups: Guidelines

Button groups: Accessibility

Buttons: Overview

Buttons: Specs

Buttons: Guidelines

Buttons: Accessibility

Extended FABs: Overview

Extended FABs: Specs

Extended FABs: Guidelines

Extended FABs: Accessibility

FAB menu: Overview

FAB menu: Specs

FAB menu: Guidelines

FAB menu: Accessibility

FABs: Overview

FABs: Specs

FABs: Guidelines

FABs: Accessibility

Icon buttons: Overview

Icon buttons: Specs

Icon buttons: Guidelines

Icon buttons: Accessibility

Segmented buttons: Overview

Segmented buttons: Specs

Segmented buttons: Guidelines

Segmented buttons: Accessibility

Split button: Overview

Split button: Specs

Split button: Guidelines

Split button: Accessibility

Cards: Overview

Cards: Specs

Cards: Guidelines

Cards: Accessibility

Carousel: Overview

Carousel: Specs

Carousel: Guidelines

Carousel: Accessibility

Checkbox: Overview

Checkbox: Specs

Checkbox: Guidelines

Checkbox: Accessibility

Chips: Overview

Chips: Specs

Chips: Guidelines

Chips: Accessibility

Date & time pickers

Date pickers: Overview

Date pickers: Specs

Date pickers: Guidelines

Date pickers: Accessibility

Time pickers: Overview

Time pickers: Specs

Time pickers: Guidelines

Time pickers: Accessibility

Dialogs: Overview

Dialogs: Specs

Dialogs: Guidelines

Dialogs: Accessibility

Divider: Overview

Divider: Specs

Divider: Guidelines

Divider: Accessibility

Lists: Overview

Lists: Specs

Lists: Guidelines

Lists: Accessibility

Loading & progress

Loading indicator: Overview

Loading indicator: Specs

Loading indicator: Guidelines

Loading indicator: Accessibility

Progress indicators: Overview

Progress indicators: Specs

Progress indicators: Guidelines

Progress indicators: Accessibility

Menus: Overview

Menus: Specs

Menus: Guidelines

Menus: Accessibility

Navigation

Navigation bar: Overview

Navigation bar: Specs

Navigation bar: Guidelines

Navigation bar: Accessibility

Navigation drawer: Overview

Navigation drawer: Specs

Navigation drawer: Guidelines

Navigation drawer: Accessibility

Navigation rail: Overview

Navigation rail: Specs

Navigation rail: Guidelines

Navigation rail: Accessibility

Radio button: Overview

Radio button: Specs

Radio button: Guidelines

Radio button: Accessibility

Search: Overview

Search: Specs

Search: Guidelines

Search: Accessibility

Sheets

Bottom sheets: Overview

Bottom sheets: Specs

Bottom sheets: Guidelines

Bottom sheets: Accessibility

Side sheets: Overview

Side sheets: Specs

Side sheets: Guidelines

Side sheets: Accessibility

Sliders: Overview

Sliders: Specs

Sliders: Guidelines

Sliders: Accessibility

Snackbar: Overview

Snackbar: Specs

Snackbar: Guidelines

Snackbar: Accessibility

Switch: Overview

Switch: Specs

Switch: Guidelines

Switch: Accessibility

Tabs: Overview

Tabs: Specs

Tabs: Guidelines

Tabs: Accessibility

Text fields: Overview

Text fields: Specs

Text fields: Guidelines

Text fields: Accessibility

Toolbars: Overview

Toolbars: Specs

Toolbars: Guidelines

Toolbars: Accessibility

Tooltips: Overview

Tooltips: Specs

Tooltips: Guidelines

Tooltips: Accessibility

On this page

Navigation rail: Guidelines ​

Navigation rails let people switch between UI views on mid-sized devices


Colorful, purple navigation rail shown collapsed and expanded.
Use the menu icon to transition between collapsed and expanded navigation rails

Usage ​

The navigation rail can display navigation items, a menu, and a floating action buttonFloating action buttons (FABs) help people take primary actions.More on FABs (FAB) in a vertical orientation.

There are two variants of navigation rails, collapsed and expanded, which can easily transform into each other when the menu button is selected.

Collapsed

The collapsed nav rail runs along the leading edge of the window, and should contain 3–7 navigation items. It should not be hidden.

It can be used in mediumWindow widths from 600dp to 839dp, such as a tablet or foldable in portrait orientation.More on medium breakpoints to extra large breakpointsWindow widths 1600dp and larger, such as ultra-wide monitors.More on extra-large breakpoints, such as tablets and desktop. In medium windows with few destinations, consider using a navigation barNavigation bars let people switch between UI views on smaller devices.More on navigation bars instead. Compact windowsWindow widths smaller than 600dp, such as a phone in portrait orientation.More on compact breakpoints should always use a navigation bar.

Collapsed navigation rail with “timer” icon on FAB.
A navigation rail should be the only visible navigation element

Expanded

The expanded navigation rail can be standard or modal, and should always open from a menu icon. An expanded rail can reveal secondary destinations not visible when collapsed.

The standard configuration is placed beside body content. It’s best for larger windows with lots of available space.

The modal configuration overlaps the body content, and should be opened from a menu icon. Use the modal configuration for:

  • Information dense layouts where space is limited
  • Products with many navigation items
Expanded navigation rail shown expanded by default and expanded over screen content.
A navigation rail can be expanded by default on larger screen sizes, or can be expanded over content on smaller screen sizes

In immersive experiences, the expanded navigation rail can be hidden entirely, appearing only when the menu icon is selected.

The collapsed navigation rail should not be hidden.

Navigation rail and hidden navigation rail with menu icon button for expansion.
The expanded navigation rail can also be hidden, appearing only when the menu icon is selected

Anatomy ​

10 elements of expanded and collapsed navigation rails.
  1. Container
  2. Menu (optional)
  3. Floating action button (FAB) (optional)
  4. Icon - active
  5. Label text - active
  6. Active indicator
  7. Icon - inactive
  8. Large badge (optional)
  9. Large badge label
  10. Small badge
  11. Label text - inactive

Container

The navigation rail should be placed on the leading edge of the window. This is the left side for left-to-right languages, and the right side for right-to-left languages.

The container fill can be turned off so the nav rail appears directly on the surface. When doing this, make sure all items have a minimum of 3:1 color contrast.

Right-to-left navigation rail in Hebrew, and left-to-right navigation rail in English.
The navigation rail should be placed on the leading edge of the window

The navigation rail should always run vertically along the side of a layout. Don’t make it horizontal.

Use a navigation barNavigation bars let people switch between UI views on smaller devices.More on navigation bars for horizontal navigation.

Horizontal navigation rail on timer screen.
Don't Don’t use the navigation rail horizontally. Use a navigation bar instead.

Navigation rail items can be aligned as a group to the top or center of a layout. On tablets, use center alignment to make it easier to reach items.

The menu icon and FAB should always be top-aligned.

Navigation rails with different alignments.
Top and center aligned rail destination placement

Menu (optional)

The menu button can transition between the collapsed and expanded navigation rails.

Once expanded, the rail can reveal secondary destinations.

When the navigation rail is expanded, the menu icon should change to represent that it can be collapsed.

Expanded and collapsed navigation rails controlled by a menu icon button.
A navigation rail can expand to reveal more destinations

Floating action button (FAB) (optional)

The container of the navigation rail is ideal for anchoring the FAB to the top of a screen, placing the app’s key action above navigation destinations.

When nested within another component, such as the navigation rail, the FAB's resting elevation should be level 0.

Navigation rail with a FAB button at the top of the screen.
Do A top-aligned FAB in the navigation rail
Navigation rail with a FAB button at the bottom of the screen.
Don't Avoid placing the FAB below navigation items

The top of the rail can also be used for a logo, however avoid using logos that could be mistaken as buttons.

Don’t use a logo as a menu button to expand the navigation rail.

Navigation rail with Material design logo at the top of the screen.
Caution Use caution when placing logos in the rail where they might be confused with an action or destination

Active indicator

The active indicator shows which page is being displayed.

Navigation rail with active indicators present for the current screen.
Do Use the active indicator only for the current open page
Navigation rail with active indicators present for all navigation items.
Don't Don’t use the active indicator for more than one navigation item at a time

The active indicator hugs the label text in the expanded nav rail. To achieve a similar style to the baseline navigation drawerNavigation drawers let people switch between UI views on larger devices. In the expressive update, use an expanded navigation rail.More on navigation drawers, consider modifying the active indicator to fill the container.

The target area should always span the full width.

Navigation rail with active indicator that hugs the text and icon.
The active indicator hugs contents in the expanded nav rail
Navigation rail with active indicator that is larger than the content within it.
Override the indicator to fill the container to more closely resemble the baseline navigation drawer

Icons

Navigation rail items must use icons that symbolize the content of their page. Browse popular icons on Google Fonts.

Navigation rail with icons that fit the destinations, like a timer icon and label leading to a timer feature.
Icons should symbolize the content of the page they open

When a destination is selected, the icon fills and changes color. An active indicator appears behind the icon.

Icons with and without an active indicator.
Selected navigation items have an active indicator, a filled icon, and a more prominent color

Label text

The label text should be a short, meaningful description of each navigation destination and another way for users to understand an icon’s meaning.

All navigation items require a one word label text.

Navigation rail with clear text labels.
Do Write clear and concise labels that describe the destination page

Avoid wrapping long labels when possible. If necessary, create a line break between words, or hyphenate longer words.

Navigation rail with lengthy text labels.
Caution Break up longer phrases into two text lines if necessary

Labels should be short enough to not be truncated. Don’t shrink the type scale to fit longer text labels.

Navigation rail with truncated text label with ellipses.
Don't Don’t truncate or display an ellipsis in place of label text
Navigation rail with small text label.
Don't Don’t reduce the type size to fit more characters into a destination label

Badges

Navigation rail icons can include badges to communicate dynamic information about the destination, such as counts or status.

In compact nav rails, the badge is placed in the upper right corner of the icon. In expanded nav rails, the badge should be placed next to the label text.

Navigation rail with badges on each icon.
  1. Small badge on a rail destination
  2. Large badge with a number
  3. Large badge with a maximum character count

Divider (optional)

A vertical divider can help separate the rail from app content. The divider should be positioned on the edge of the rail container that’s adjacent to the app’s content area.

Navigation rail with divider separating it from screen content.
A divider can make the navigation rail container distinct from other on-screen content

Placement ​

In adaptive layouts, the navigation rail should be placed outside any panesPanes are layout containers that house other components and elements within a single app. A pane can be: fixed, flexible, floating, or semi permanent.More on panes, always along the leading edge of the window.

Don’t place it within body content. When the navigation rail is hidden, the body content can fill in the remaining space as long as the menu icon is still accessible.

TabsTabs organize content across different screens and views.More on tabs can be used alongside a navigation rail to create an extra layer of visible navigation.

Expanded navigation rails can open from menu buttons on mobile

Adaptive design ​

For more, see adaptive design.

Resizing

When moving from a large screen to a small screen, a navigation rail can transform into a navigation bar, providing the same quick access in a configuration that’s easier to use on smaller displays. Never use the navigation rail and navigation bar simultaneously.

Only use navigation rails for medium breakpoints and larger. Don’t use a navigation bar. If there are more than five destinations, consider using a modal expanded nav rail instead.

Compact: Don’t use a standard navigation rail for compact layouts due to space constraints. Use a navigation bar instead.

Medium: Use a navigation rail, especially if prioritizing persistent vertical navigation over maximizing vertical content space.

Expanded to extra-large: Use a navigation rail, not a navigation bar. Consider available horizontal space and the number of destinations when choosing between standard and modal.

Navigation bar on a phone screen and navigation rail on a tablet screen.
On smaller devices, use a navigation bar. On larger displays, use a navigation rail.

Presentation

When the navigation rail transitions from collapsed to expanded, the contents of the page should automatically adjust to fit.

The contents of the navigation rail also expand to fill the space. For example, the FAB should transition into an extended FAB.

Extra destinations can be shown in an expanded nav rail.

Use a standard expanded rail when there are secondary destinations or actions that have lower priority than the main navigation items

Behavior ​

Scrolling

Destinations in the navigation rail should remain visible and fixed when scrolling vertically.

Rail destinations remain fixed while on-screen content scrolls vertically

If a layout scrolls horizontally, the rail can scroll off-screen or remain fixed. To distinguish that content is scrolling underneath the rail, use a divider or add elevation to the rail.

A divider and color fill change create visual distinction between the rail and horizontally scrolling content
Elevating the rail to level 1 creates visual distinction between the rail and horizontally scrolling content

Selection

When a destination is tapped, the destination screen uses a top level transition pattern. In addition, the icon becomes filled and the active indicator expands from the center of the icon.

Tapping a destination uses a top level transition pattern

Back

On Android, a gesture called predictive back allows people to swipe left or right on the screen to go back or dismiss modal components.

  • Previous screen is revealed in a preview to signal the destination
  • Predictive back only applies to the modal expanded navigation rail.

A list of compatible components is available on the gestures page.

The nav rail pops off the edge of the window during the predictive back gesture
Pager
Previous pageNavigation rail: Specs
Next pageNavigation rail: Accessibility

Released under the Apache 2.0 or CC BY 4.0

Copyright © 2018-Present Google

https://m3.material.io/components/navigation-rail/guidelines

Released under the Apache 2.0 or CC BY 4.0

Copyright © 2018-Present Google