Skip to main content

Floating Action Button

UI Design

What is a Floating Action Button

A floating action button, or FAB, is a button that floats above the content and represents the primary action of a screen. It is part of Material Design and usually shows a single icon, such as a pencil for "Compose" or a plus for "Add".

Types of Floating Action Buttons

  • FAB: An icon in a rounded container, in several sizes
  • Extended FAB: Icon plus a text label, such as Compose
  • FAB menu: Opens a few related actions

When to use a Floating Action Button

Use a FAB for one frequent, positive action on a screen, such as creating something new. Do not use it for minor or destructive actions like delete, and do not put more than one FAB on a screen. If no action clearly stands out, skip the FAB.

Floating Action Button best practices

Keep it within easy thumb reach and clear of other controls such as snackbars. Use a familiar icon, or an extended FAB with a label when the icon alone may be unclear.

Frequently asked questions

When should you use a floating action button?

When a screen has one clear primary action that users take often, such as composing an email or adding a new item. If a screen has no single main action, or several equal ones, do not use a FAB.

What is an extended FAB?

An extended floating action button adds a text label next to the icon, such as "Compose". The label makes the action clearer, which helps when the icon alone could be misunderstood.

Should iOS apps use floating action buttons?

The FAB is a Material Design pattern for Android and the web. Apple's guidelines do not include it, so iOS apps usually place primary actions in a toolbar or navigation bar instead.