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

App bars: Guidelines ​

App bars are placed at the top of the screen to help people navigate through a product.


4 app bars with headlines and action icons.
App bars show information about the page, key actions, and navigation actions like Back or Menu

Usage ​

Use an app bar to provide content and actions related to the current page, such as page navigation actions, headlines, images, and 1–2 essential actions.

The information and actions in the app bar should be contextual and specific to a page, but can also include global product controls, such as search or notifications.

App bar with navigation icon buttons and a 2-line title.
App bars provide content and actions related to the current page

App bars should only have one action, two if necessary.

The primary action should alter or exit the entire page, like Send, Save, or Edit.

If the product has many actions, place those in a toolbarToolbars display frequently used actions relevant to the current page.More on toolbars. Avoid placing an overflow menu in the app bar when possible.

App bar with content below.
App bars can display one high visibility action to boost its prominence

To boost visibility of a primary action, change the style of the icon button to filled or tonal, and consider using a wide icon button.

Avoid using multiple filled or tonal buttons.

App bar with 1 filled button.
Do Use a filled or tonal button for important actions
App bar with 2 filled buttons, side by side.
Don’t Don’t put multiple filled or tonal buttons in the app bar

The four variants of app bars are:

  1. Search app bar
    Use on home pages when search is key to the product.
  2. Small
    Use in dense layouts or when a page is scrolled.
  3. Medium flexible
    Use to display a larger headline. It can collapse into a small app bar on scroll.
  4. Large flexible
    Use to emphasize the headline of the page.
The 4 app bar variants.
  1. Search app bar
  2. Small
  3. Medium flexible
  4. Large flexible

Baseline app bars

There are two baseline app bars that are no longer recommended:

  1. Medium
    Replace with medium flexible.
  2. Large
    Replace with large flexible.
2 baseline app bars.
  1. Medium
  2. Large

Search app bar ​

Use a search app bar to provide an emphasized entry-point to open the search view.

A search bar within an app bar.
Search app bars have a search field instead of heading text

Search barsThe search bar is a persistent and prominent search field at the top of the screen.More on search bars should always include the word Search. They can use various capitalization styles depending on the product.

  1. Search
  2. Searching a specific area
    Example: Search inbox
  3. Search [Product]
    Example: Search Photos
3 examples of search text in an app bar.
Use proper capitalization depending on what’s being searched

Buttons in search app bar

In addition to a trailing avatar, search app bars can have up to two trailing icons on mobile.

Trailing icons can be placed inside or outside the search bar.

2 icons placed in the search bar.
Put the most used actions on the left and least used on the right

The leading element of a search app bar can be used for a product’s logo to brand the app’s overall experience.

This logo can be purely cosmetic, or can trigger an action like returning to the home screen or refreshing it.

Avoid using a logo to open an expanded navigation railExpanded navigation rails show text labels and an extended FAB, and can be default or modal..

A search app bar with a logo, search bar, and avatar.
The leading element can be a product logo

Don’t use more than two trailing icon buttons with an avatar.

If more actions are needed, place them in a toolbarToolbars display frequently used actions relevant to the current page.More on toolbars instead.

3 icons placed in a search app bar.
Don’t Don’t use three icons and an avatar in a search app bar

Large screens ​

The search app bar dynamically adapts to available width. There should be up to four trailing icons on larger screens.

4 actions placed in a search app bar on a large screen.
Increased horizontal space on larger screens allows for up to four trailing icons.

Alternate color options

By default, search containers in app bars use the surface container color to distinguish it from the app background. If the background is darker, use a lighter container color on the search bar, like surface bright.

When choosing alternate colors, make sure the search text and container have at least 3:1 contrast for readability.

App bar with a light search container color.
Search app bars can use different colors, like surface bright, for improved contrast with surrounding elements

Anatomy ​

Diagram of app bar layout.
  1. Container
  2. Headline
  3. Trailing icons
  4. Subtitle
  5. Leading button

Container

The app bar container holds all information and actions at the top of a screen, including navigation icons, headlines, and buttons.

Avoid changing the position or shape of the container.

App bar with square corners.
Do Use straight corners for app bars
App bar with curved corners.
Don’t Don’t use curved shapes. This implies that the container can expand upon interaction.

Always use the default height of the app bar, and make it span the full width of the window.

App bar at default height.
Do Default heights were chosen to ensure readability of on-screen elements
App bar with reduced height.
Don’t Don't make an app bar shorter than its default height

Adding logos

Image logos can be used in app bars to bolster brand identity or visual appeal.

The image should be high quality and pertinent, and shouldn’t disrupt the app bar's functionality.

A logo added to an app bar.
Image logos can replace all text in small app bars, and appear above the text in other app bars

Leading button

The leading button should be used for navigating the product.

It typically is one of the following:

  • A menu icon, which opens a modal expanded navigation railExpanded navigation rails show text labels and an extended FAB, and can be default or modal.
  • A back arrow, which returns to the previous screen
Leading navigation icon aligned on left of app bar
  1. Leading Back button

Headline

The headline can describe:

  • The current page
  • The current section
  • The product

Headline text should be brief enough to easily fit in the app bar.

In medium flexible and large flexible app bars, the headline can wrap to a second line.

Don’t truncate the headline text.

App bar headline text set in 2 lines.
Do If headline text is long, use a medium flexible or large flexible app bar and wrap the headline to two lines maximum
Small app bar headline text wrapped on 2 lines.
Don’t Don’t wrap text in a small app bar

Headlines can be aligned to the leading edge or centered.

The headline’s typography size and style change depending on the app bar variant.

Search, small, medium and large flexible app bars with headline styles.

Headline typography style for each app bar

  1. Search: Body large
  2. Small: Title large
  3. Medium flexible: Headline medium
  4. Large flexible: Display small

Subtitle

Subtitles can add additional context to a page.

These can be leading-aligned or center-aligned with the headline text.

Small to large flexible app bars with headline and subtitle styles.

Subtitle typography style for each app bar:

  1. Small: Label medium
  2. Medium flexible: Label large
  3. Large flexible: Title medium

Trailing icon buttons

Up to two icon buttons can be placed after the headline, aligned to the trailing edge of the app bar. Place most-used actions closest to the leading edge.

Avoid using these buttons to open a menu with more actions. If more actions are needed, place them in a toolbarToolbars display frequently used actions relevant to the current page.More on toolbars instead.

If changing the icon button color style to filled or tonal, only use one icon button.

2 icons placed to right of headline, from most to least used.
Put the most used actions on the left and least used on the right

Use filled icons when possible for the best visibility. Outlined icons can also be used, particularly for unselected toggle buttonsButtons let people take action and make choices with one tap.More on buttons.

App bar with 2 filled icons, “save” and “download.”
Do Use filled icons for clear, visible actions
App bar with 2 outlined icons, “save” and “download.”
Caution Outlined icons can be used as needed, or when using toggle buttons

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

The width of the app bar container responds to the view or device width.

It should always span 100% of the window width.

The app bar’s container responds to always fill the window width

Resizing may cause actions at the trailing edge of the app bar to collapse into an overflow menu at smaller breakpoints.

These actions become visible again at larger sizes.

Actions at the trailing edge collapse into an overflow menu

The search container of the search app bar should fill 100% of the space between leading and trailing app bar elements until it reaches 312dp. Then, it should only grow further to fill 50% of that space.

The search field adapts to the amount of space between other elements in the app bar

Presentation

The app bar automatically supports right-to-left (RTL) languages by aligning the layout of elements to the leading and trailing edges of the container.

This means that in RTL languages, the layout of the app bar is mirrored.

App bar in RTL with Hebrew text.
The app bar’s layout is mirrored for right-to-left (RTL) languages

Behavior ​

Scrolling

App bars should initially be the same color as the background, then fill with a contrasting color on scroll to provide visual separation from the background.

The app bar can remain on a page at all times, or can hide and reappear when scrolling.

Upon scrolling, an app bar container fills with contrasting color to create a visual separation

To focus more on body content, consider setting the app bar container to be transparent on scroll. This allows the buttons to float above the content.

Make sure icon buttons have a container fill.

Consider using narrow-width icon buttonsIcon buttons help people take minor actions with one tap.More on icon buttons for actions, like Back, to reduce the amount of space they take up.

Upon scrolling, an app bar container remains transparent and actions inside become filled icon buttons

Selecting the search bar should open the search viewThe search view is a full-screen modal often used to display a list of search results. It can also be opened by selecting a search icon.More on search view component.

When selected, a search app bar opens a search view

When scrolled, medium flexible and large flexible app bars can transform into small app bars. They should remain small until the page is scrolled back to the top. Don’t transform app bars into a search app bar.

The app bar can hide when scrolling up and reveal when scrolling down
Medium and large flexible app bars can use the compress effect to transform into small app bars when scrolled
Pager
Previous pageApp bars: Specs
Next pageApp bars: Accessibility

Released under the Apache 2.0 or CC BY 4.0

Copyright © 2018-Present Google

https://m3.material.io/components/app-bars/guidelines

Released under the Apache 2.0 or CC BY 4.0

Copyright © 2018-Present Google