Toolbars: Guidelines
Toolbars display frequently used actions relevant to the current page

Usage
Use a toolbar to provide actions related to the current page.
Toolbars can contain many actions and can scale to show more actions in larger windows.

There are two variants of toolbars:
- Docked toolbar
Spans the full width of the window. It’s best used for global actions that remain the same across multiple pages. - Floating toolbar
Floats above the body content. It’s best used for contextual actions relevant to the body content or the specific page.
The baseline bottom app bar is no longer recommended, but is still supported.


When actions don’t fit in a toolbar, add a menuMenus display a list of choices on a temporary surface.More on menus.

There are two color configurations:
- Standard
A low-emphasis color scheme best used for focusing attention on the body content. - Vibrant
A high-emphasis color scheme that draws attention to the controls. It can also indicate a temporary change in the page behavior, such as entering edit mode.
Consider using alternative color roles to create greater or lesser emphasis depending on the needs of the app. Experiment with different color roles to achieve different effects.


Toolbars & navigation bars
The toolbar and navigation barNavigation bars let people switch between UI views on smaller devices.More on navigation bars are both placed at the bottom of the window, so should not be shown at the same time. Show the navigation bar on primary pages, and toolbars on subsequent pages with actions.

- Navigation bar on a primary page
- Toolbar on a secondary page with contextual actions
Floating toolbars can be used as tabs between related subsequent pages in the product hierarchy.
This helps group similar pages together, and shows that the selection affects the body content underneath.

Consider the existing app hierarchy when using a toolbar for local navigation.
Avoid redundant or confusing navigation combinations in the same view.

Anatomy

- Container
- Elements
Container
The docked toolbar’s container spans the full width of the window.
Avoid applying rounded corners to the container. This can imply the container expands or changes upon interaction.


As long as there's a minimum of 16dp padding on the leading and trailing edge, arrange controls inside however you see fit. The 32dp padding between items is just the default.
All elements need a minimum 48x48dp target area to be accessible.
Be cautious of including too many controls as it can be overwhelming.

The floating toolbar’s container should be fully visible on screen. If more actions are needed, use an overflow menu.


Elevation
Floating toolbars have elevation by default.
If the content beneath the toolbar is visually distinct, elevation can be removed.

Flexibility & slots
When configuring a toolbar, think of it as a container with several slots.
These slots can be populated by buttonsButtons let people take action and make choices with one tap.More on buttons, icon buttonsIcon buttons help people take minor actions with one tap.More on icon buttons, images, text fieldsText fields let users enter text into a UI.More on text fields, or any kind of custom component.
Icon buttons provide an even hierarchy of controls. Mixing in a filled icon button can help add emphasis to a single action.

Visually emphasizing a single action more than others is an effective way to create hierarchy and guide people to controls they use most often. Avoid emphasizing more than one action at a time.
Some common ways to add emphasis to toolbar actions include:
- Use different icon buttonIcon buttons help people take minor actions with one tap.More on icon buttons color styles, such as filled, tonal, and standard
- Customize the color rolesColor roles are assigned to UI elements based on emphasis, container type, and relationship with other elements. This ensures proper contrast and usage in any color scheme.More on color roles of a single action, such as a primary or secondary palette
- Use wide and narrow icon buttons
- Pair the toolbar with a FABFloating action buttons (FABs) help people take primary actions.More on FABs



Avoid using square icon buttons in floating toolbars. Their square shape conflicts with the fully-rounded shape of the floating toolbar container.
Square buttons can be used in the docked toolbar.

Floating toolbar with FAB
A FABFloating action buttons (FABs) help people take primary actions.More on FABs can be placed next to a floating toolbar to present one high-priority action alongside a unified set of toolbar actions.
Use a FAB for the highest-priority action in the view, or to complement the controls.

Position & orientation
Only place docked toolbars at the bottom of the window.
If using other bottom-aligned elements, such as a navigation bar, don't use a docked toolbar.

Floating toolbars can be horizontal or vertical.
Horizontal toolbars should have a minimum 16dp margin from the edge of the window.

In larger breakpoints, floating toolbars can be vertical and placed on either side of the screen.
Vertical toolbars should have a minimum 24dp margin.

To keep vertical toolbars compact, don’t use wide icon buttons.
Use narrow or default icon buttons instead.

Vertical toolbars should be positioned opposite the navigation railNavigation rails let people switch between UI views on mid-sized devices.More on navigation rails to balance out the screen and keep actions easy to access.
When showing a navigation rail and vertical floating toolbar at once, use the centered configuration of the navigation rail.

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
Docked
The docked toolbar should always span 100% of the screen width.
In compact breakpointsWindow widths smaller than 600dp, such as a phone in portrait orientation.More on compact breakpoints, elements in the toolbar should be evenly spaced.
In medium breakpointsWindow widths from 600dp to 839dp, such as a tablet or foldable in portrait orientation.More on medium breakpoints and larger, adjust the padding between controls to create a comfortable layout. This can be achieved by:
- Centering all elements
- Customizing to center a key action, and aligning other elements to the edges



On web and large screens, the docked toolbar can be rounded. Dividers can be used to organize large amounts of items. Only shrink the height and use extra small buttons if vertical space is limited.

Floating
The container should only be as big as needed to hold the items inside before reaching the 16dp margin.
If there’s not enough space for all items, put them in an overflow menu in the trailing slot. As the breakpoint expands, more actions can be revealed.
The floating toolbar width can also be capped to keep it smaller and hide more elements.


Vertical toolbars aren’t recommended for compact windows.
They take up a significant area of the screen and may feel visually overwhelming, especially on screens with complex layouts.
Only use them when the screen is simple or when the toolbar has a few controls.

Presentation
In larger breakpoints, floating toolbars can be aligned to opposite edges of the screen so they're easy to reach and group similar actions. For example, consider placing the undo and redo actions in one toolbar, and editing controls like highlight, erase, and select in another. Stylistic differences can help emphasize each toolbar’s purpose and clarify hierarchy.

Don’t use multiple toolbars in compact windows. There typically isn’t enough room on screen.
Instead, use one toolbar for all actions.

Actions at the trailing edge of the toolbar can collapse into an overflow menu at smaller breakpoints, and become visible again at larger sizes.
Right-to-left languages
In right-to-left (RTL) languages, mirror individual items that need it, like icons and text direction. If the order of actions is important, flip the order of the actions as well.


Behavior
Scrolling
Docked toolbars can either remain on the screen during scroll, or animate offscreen.
Floating toolbars can remain on the screen, animate offscreen, or collapse into a single, high-emphasis action on scroll.
On Jetpack Compose, the floating toolbar can collapse to a FAB or key action on scroll.
Don't collapse actions and scroll at the same time.