Floating Action Button
A floating action button is a prominent circular control that stays above content to expose one high-priority action for the current context.
Download Markdown (.md)Soroush’s Product Wiki · https://wiki.soroush.uk/topic/floating-action-button/
01What it means
A floating action button (FAB) is an elevated button, commonly used in mobile interfaces, that represents a primary action such as creating a new item. It floats over the layout rather than occupying ordinary content flow. Extended variants may include a text label alongside the icon.[1][2]
02Why it matters
A FAB can keep one frequent action available while content scrolls, but its visual prominence establishes a strong hierarchy. Choosing the wrong action or adding several competing FABs makes the interface harder to understand and can cover content.
03When to use it
Use a FAB when one frequent, constructive action clearly dominates a mobile view and remains relevant across its content. Use an ordinary button or toolbar when several actions have similar priority, labels are necessary for comprehension, or overlaying content creates obstruction.
04How it works
- Validate that one action is both frequent and primary throughout the view.
- Choose a familiar icon and add a text label when the icon alone is not reliably understood.
- Place the control consistently within safe areas without covering content or system controls.
- Define scrolling, keyboard, loading, disabled, and destination behavior.
- Test small screens, large text, zoom, right-to-left layouts, touch reach, and assistive-technology naming.
05A practical example
A mobile notes app uses one pencil FAB to create a note from the notes list. It remains above the scrolling list, has the accessible name “Create note,” moves above the on-screen keyboard when needed, and is replaced by ordinary Save and Cancel buttons inside the editor.
06Where it breaks
FABs are platform-associated, obscure nearby content, and depend heavily on icon recognition. They are unsuitable when context changes their meaning or when more than one action deserves equal emphasis.
Common mistakes
- Using a FAB for a secondary or infrequent action merely to attract attention.
- Displaying multiple equally prominent floating actions.
- Choosing an ambiguous icon with no accessible or visible label.
- Letting the button cover list items, pagination, or system safe areas.
07Sources
- Floating action buttonMaterial Design · Institutional design systemFloating action button
- Floating action buttonAndroid Developers · Official documentationFloating action button