# Floating Action Button

## Motion Functions

<table data-view="cards"><thead><tr><th></th><th data-hidden data-card-cover data-type="files"></th></tr></thead><tbody><tr><td>Guidance Function</td><td><a href="https://1568998344-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjR69WFqQtm3K6aW02kWi%2Fuploads%2FaqHXrX7q77tDpcKPm6Wo%2FGuidance_Reduced.gif?alt=media&#x26;token=2e2f64b4-a08d-4e6a-b9c3-e11050f93da6">Guidance_Reduced.gif</a></td></tr><tr><td>Structural Function</td><td><a href="https://1568998344-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjR69WFqQtm3K6aW02kWi%2Fuploads%2F3u9JLKHGk2bUkjNlmENl%2FStructure_Reduced.gif?alt=media&#x26;token=86b66ea8-6157-48c2-811f-5b8b54513944">Structure_Reduced.gif</a></td></tr></tbody></table>

Floating Action Buttons allow users to access primary information on the page. The primary function of a FAB is Guidance and Structure. The FAB shows users where they can access elements of an interface, and the interface is structured. The expansion of the FAB can give more information as to the affordances of the interface.

Buttons can also have a set of secondary functions. Aesthetic functions can be incorporated into the FAB based on how the contained elements expand.&#x20;

## Examples

<figure><img src="https://1568998344-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjR69WFqQtm3K6aW02kWi%2Fuploads%2F6gwWQLTaNTYGwASZa14S%2FFAB.gif?alt=media&#x26;token=a659401a-350c-4b17-ba67-cec4399ce70f" alt=""><figcaption><p>Floating Action Button Interaction by Mauricio Bucardo</p></figcaption></figure>

The FAB relies on transformation, masking, obscuration, and cloning principles to achieve the intended functions of structure and guidance. In the above example, the button reveals a layer underneath that contains the possible functions.&#x20;

<figure><img src="https://1568998344-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjR69WFqQtm3K6aW02kWi%2Fuploads%2FbFfKfa3cbsMfMqdq0Ef0%2FFab_Menu.gif?alt=media&#x26;token=8622a763-7071-43c8-a8d6-98210fb297ac" alt=""><figcaption><p>Liquid Tab Bar Animation by Dmitry Lauretsky</p></figcaption></figure>

In this example, the FAB uses the principle of cloning to show that there are four icons that are part of the expanded set to draw the realtionship that they are a subset of the action performed (tapping the FAB)&#x20;

<figure><img src="https://1568998344-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjR69WFqQtm3K6aW02kWi%2Fuploads%2FRy4p3o67xpQM6JvDetJO%2FFAB_Share.gif?alt=media&#x26;token=ce12e2da-6bac-484e-8cd6-33b000492b4c" alt=""><figcaption><p>Share Button Interaction Concept by Oleg Frolov</p></figcaption></figure>

Here the FAB transforms from a circle to a rounded rectangle and has its children elements offset and populate the rectangle. The movement of the button presents the user wth a relationship that shows that the expanded button contains all the children actions.&#x20;


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://abhishekshankar.gitbook.io/uxm/the-system/action-components/floating-action-button.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
