logo

SINGULARITY

DOCS

PurchaseReturn to the Dashboard
Reference

Floating Action Button

A Floating Action Button (FAB) executes the primary or most frequently used action on a screen.

A Floating Action Button floats above all screen content, typically as a circular element featuring an icon at its center. FABs are available in two variants: standard and extended.
Employ a FAB only when it is the most appropriate method to highlight a screen’s primary action. It’s recommended to use a single FAB per screen to represent the most common action.

Basic FAB

Size

The default size is large. Use the size prop to create smaller floating action buttons.

Animation

By default, the floating action button expands onto the screen as a piece of material.
For a floating action button spanning multiple lateral screens (e.g., tabbed interfaces), it should briefly vanish and then reappear if its action changes.
The Zoom transition can be applied to achieve this effect. Since both exit and entry animations occur simultaneously, the enterDelay prop is used to ensure the outgoing Floating Action Button’s animation completes before the new one appears.
Item One