---
url: /components/floating-action-button/guidelines.md
description: >-
  Floating action buttons (FABs) help people take primary actions. They’re used
  to represent the most important action on a screen, such as Create or Reply.
---

# FABs

Floating action buttons (FABs) help people take primary actions. They’re used to represent the most important action on a screen, such as Create or Reply.

[Overview](overview.md) · [Specs](specs.md) · **Guidelines** · [Accessibility](accessibility.md)

![3 screens with various FAB sizes.](/assets/0ec3e88e-mkapod2e-01.CxxIySxm.webp)

FABs have multiple sizes that scale with the breakpoint

## Usage

Use a FAB for the most important action on a screen; it appears in front of all other content.<br><br>The FAB can be aligned left, center, or right. It can be positioned above the navigation bar, or nested within it.

![A Compose FAB is positioned above a nav bar on a mobile email inbox.](/assets/ced7dee8-mkapp0w4-02.B1OL5dcL.webp)

FABs can use dynamic color

There are three FAB sizes:

1. FAB
2. Medium FAB (most recommended)
3. Large FAB

Choose the FAB size based on the visual hierarchy of your layout. <br><br>Note: The small FAB is no longer recommended.<br>

![3 FAB sizes.](/assets/fa280e00-mkappjdx-03.B2tR0UsX.webp)

1. FAB 
2. Medium FAB
3. Large FAB

The FAB is the smallest size, and is best used in [compact windows](../../foundations/layout/breakpoints/compact.md "Window widths smaller than 600dp, such as a phone in portrait orientation.") where other actions may be present on screen.<br><br>The medium FAB is recommended for most situations, and works best in compact and [medium windows](../../foundations/layout/breakpoints/medium.md "Window widths from 600dp to 839dp, such as a tablet or foldable in portrait orientation."). Use it for important actions without taking up too much space. <br><br>A large FAB is useful in any window size when the layout calls for a clear and prominent primary action, but is best suited for [expanded](../../foundations/layout/breakpoints/expanded.md "Window widths 840dp to 1199dp, such as a tablet or foldable in landscape orientation, or desktop.") and larger breakpoints, where its size helps draw attention.

![A medium FAB over an email app UI.](/assets/060c0fa4-mkapq84r-04.C4spmd0M.webp)

Use a medium FAB in most breakpoints

![A large FAB over an email app UI.](/assets/1cdc4591-mkapqn1b-05.C14_B9jZ.webp)

Use a large FAB when the primary action needs to be prominent

::: tip Do
![A photo feed with no FAB.](/assets/cdeaaf32-mkapr8x3-06-do.BFx9R2WU.webp)

FABs are not needed on every screen, such as when images represent primary actions
:::

::: danger Don't
![A screen with 3 FABs makes it hard to tell what the primary action should be.](/assets/2a8ec79f-mkaps2z9-07-don-t.-ABMnbI1.webp)

Don't display multiple FABs on a single screen
:::

A FAB can transform into an [extended FAB](../extended-fab/overview.md "Extended floating action buttons (extended FABs) help people take primary actions.") on larger screens, or it can transition into a FAB menu when selected. Use a FAB menu when there are many kinds of actions relevant to the FAB. 

[More on FAB menus](../fab-menu/overview.md)

![A extended FAB saying “Share” with a less popular share icon.](/assets/a1dfc6a3-mkc6tcz8-08.Cgojss5E.webp)

Use the extended FAB when label text is necessary

![A FAB menu showing 3 actions related to sharing.](/assets/f9f3e8ea-mkc6uyqo-09.D_-MqQrF.webp)

Use the FAB menu when there are many kinds of actions relevant to the FAB

## Actions

A FAB can trigger an action on the current screen, or it can perform an action that creates a new screen.<br><br>A FAB promotes an important, constructive action such as:

* Create
* Favorite
* Share
* Start a process

::: tip Do
![FABS for 12 common actions including, create, edit, and navigate.](/assets/383f8a87-mkaptzjv-10.BDOhjZx3.webp)

Use FABs for primary, positive actions
:::

Avoid using a FAB for minor or destructive actions, such as:

* Archive or trash
* Alerts or errors
* Limited tasks like cutting text
* Controls better suited to a toolbar, like to adjust volume or font color

::: danger Don't
![FABs for 18 minor or destructive actions, such as cut, trash, and volume.](/assets/03f3772d-mkapug9u-11.Cx9jOcDZ.webp)

Don’t use FABs for minor, overflow, unclear, or destructive actions
:::

## Anatomy

![2 elements of a FAB.](/assets/1e59083a-mkapv2og-12.BWQXIWbf.webp)

1. Container
2. Icon

### Container

The FAB is typically displayed in a square container. The container shouldn’t be covered by other elements, such as badges.<br><br>The container must have sufficient color contrast with the surface it’s placed on.

![A bright colored FAB has high contrast with the background.](/assets/d6e5d0b2-mkaq0msf-13.BUs66ce5.webp)

A FAB container color needs to stand out from its background

### Icon

An icon in a FAB should be clear and understandable. When hovering over a FAB on web products, FABs should display a tooltip with an accompanying icon text label. Use a filled icon instead of an outlined icon.<br><br>A FAB shouldn't contain notifications or actions found elsewhere on a screen.

::: tip Do
![4 FABs each with a simple icon.](/assets/8681dcaa-mkaq1779-14.B81f-t2M.webp)

Use clear and simple icons such as add, message, or edit
:::

::: danger Don't
![4 FABs each with an ambiguous icon.](/assets/31417048-mkaq1wxv-15.kUjk11wi.webp)

Don’t use confusing or open-ended icons to symbolize less common actions
:::

## Adaptive design

In [compact](../../foundations/layout/breakpoints/compact.md "Window widths smaller than 600dp, such as a phone in portrait orientation.") and [medium breakpoints](../../foundations/layout/breakpoints/medium.md "Window widths from 600dp to 839dp, such as a tablet or foldable in portrait orientation."), the best place for the FAB is typically the lower right corner of a screen, since it’s easy to reach and is less likely to cover important content.<br><br>In [expanded breakpoints](../../foundations/layout/breakpoints/expanded.md "Window widths 840dp to 1199dp, such as a tablet or foldable in landscape orientation, or desktop."), consider placing the FAB in the upper left corner, like in the [navigation rail](../navigation-rail/overview.md "Navigation rails let people switch between UI views on mid-sized devices."). This positions it as one of the first interactive elements people see when they land on the page.<br><br>Adjust the size of the FAB based on the context. Use a medium FAB for mobile layouts, and large FAB for tablets and large screens.

![Large screen layout showing FAB in upper left region of the screen, below navigation rail icon.](/assets/29eb9840-mkaq2b6m-16.XhSVVBMQ.webp)

For large screens, place the FAB in the upper left corner

::: tip Do
![A screen layout with several interactive elements. A single FAB is in the navigation rail.](/assets/85d31d54-mkaq2qmb-17.BQJad3RK.webp)

A FAB can be used within a navigation component, such as a navigation rail
:::

::: danger Don't
![A busy screen layout with 8 cards, each with their own FAB.](/assets/3093f183-mkaq35yc-18.Dl_WIBxm.webp)

Individual components, such as cards, shouldn’t have their own FAB
:::

## Behaviors

### Appearing

When a FAB animates on screen, it expands outward from a central point. The icon within it can be animated as well.<br><br>While FABs should be relevant to screen content, they aren't attached to the surface on which content appears. FABs move separately from other UI elements because of their relative importance.<br><br>**Screen transitions<br>**&#x46;ABs can morph to launch related actions. When a screen changes its layout, the FAB should disappear and reappear during the transition.<br><br>**Reappearance<br>**&#x54;he FAB should only reappear if it's relevant to the new screen. It should reappear in the same position, if possible.

<video controls src="https://firebasestorage.googleapis.com/v0/b/design-spec/o/projects%2Fgoogle-material-3%2Fimages%2Fm0e6834q-FAB-A.mp4?alt=media" aria-label="FAB appearing from the bottom of the screen, moving to a position above the  navigation bar."></video>

FAB animating on screen

### Expanding

The FAB can expand and adapt to any shape using a container transform transition pattern. This includes a surface that's part of the app structure, or a surface that spans the entire screen.<br><br>The FAB can also transition into a FAB menu. <br><br>[More on FAB menus](../fab-menu/overview.md)

<video controls src="https://firebasestorage.googleapis.com/v0/b/design-spec/o/projects%2Fgoogle-material-3%2Fimages%2Fm1l6g0wn-FAB-B-1.mp4?alt=media" aria-label="Compose FAB expands to container size, opening a draft email screen."></video>

FABs can expand and adapt to any shape

### Scrolling

FABs remain in place on scroll.<br><br>Extended FABs can collapse into a FAB on scroll and expand on reaching the bottom of the view.

<video controls src="https://firebasestorage.googleapis.com/v0/b/design-spec/o/projects%2Fgoogle-material-3%2Fimages%2Fm1l6g857-FAB-C_1.mp4?alt=media" aria-label="Extended FAB collapsed into a FAB when scrolling on the page."></video>

FABs stay in place above a scrolling background

### Moving across tabs

When tabs are present, the FAB should briefly disappear, then reappear when the new content moves into place. This shows that the FAB is not connected to any particular tab.

::: tip Do
<video controls src="https://firebasestorage.googleapis.com/v0/b/design-spec/o/projects%2Fgoogle-material-3%2Fimages%2Fmd8w19ca-GM3_Expressive_FAB_Guidelines_FAB-D_v02.mp4?alt=media" aria-label="FAB blinks away and reappears with new screen content."></video>

The FAB should disappear and reappear when switching pages
:::

Don't animate the FAB with body content.

::: danger Don't
<video controls src="https://firebasestorage.googleapis.com/v0/b/design-spec/o/projects%2Fgoogle-material-3%2Fimages%2Fmd8w1k06-GM3_Expressive_FAB_Guidelines_FAB-E_v02.mp4?alt=media" aria-label="FAB moves horizontally when scrolling between tabs."></video>

Don’t keep the FAB on screen when switching pages
:::
