Skip to main content
ActionsLevel 2

FAB

浮动操作按钮

MobileWebDifficulty: Medium

The round button that floats in the corner of the screen, usually carrying the "create" action.

01

Live Demo

Actually clickable

Page content (this can scroll a long way)

It stays pinned bottom-right and never scrolls away — so "create" is reachable however deep you are.

What you just saw:The round button with a plus in the bottom-right of Google Material apps, the "+" publish button on Xiaohongshu (RED), the pencil in the bottom-right of a notes app — all FABs.

02

What it actually is

The FAB is designed as a shortcut that is always within thumb reach. It sits in the bottom-right of the app: the benefit is that it breaks out of the hierarchy and is always available; the cost is that it covers content and permanently occupies visual attention.

floating action buttonfloating buttonFABhover buttonfloating compose button
03

Anatomy · What it's made of

  1. Surface圆形底

    56×56px, with a shadow to reinforce the floating feel

  2. Icon图标

    24px, centered

  3. Position位置

    16px from the bottom-right plus the safe area

  4. Extended展开态

    The extended FAB with a text label

04

When to Use

When it fits, and when it doesn't
FAB usage recommendations
SituationUse it?
There is one high-frequency primary action on mobile (create / capture / log)Yes
That action should be reachable from several levels of pagesYes
The page is a long scrolling listYes
The toolbar already has a primary buttonNo
The primary action would cover critical content at the bottomNo

Adding a FAB on top of a layout with 5 or fewer tabs is redundant — "create" usually belongs in the bottom navigation.

It always floats above everything, so a position that is too low covers the last row of the list.

05

Similar Patterns

Don't mix these up
06

How to tell AI

Three levels of prompt

Add the component name and specifics

Add a FAB in the bottom-right of the mobile page: a circle with a plus icon that creates new content. It stays fixed while a long list scrolls and does not scroll away with the content.

07

Don't just say this to AI

Bad → Better

Don't say this to AI

Put a plus sign in the bottom-right corner.

Say this instead

Add a FAB in the bottom-right on mobile: 56px circle, dark solid, Plus icon, shadow for depth, aria-label="Create", with bottom offset accounting for the bottom navigation height and the safe area.

08

Share this card

Social-ready

Turn this pattern into a 3:4 or 1:1 knowledge card and export it as PNG right in the browser. No backend needed.