# Floating Action Button (FAB)

<flow-fab>
Stable

The floating action button (FAB) component displays a floating button for primary user actions.

The FAB icon is specified using an icon name, URL to an SVG file or an SVG data URL. See the icon component for details.

# Examples

# Colors

Use the color attribute to set the FAB's color from the application palette. By default, the secondary application color is used to match Material Design guidelines.

# Compact FABs

Add the compact attribute to display a smaller size FAB.

# Square FABs

Add the square attribute to display a square FAB.

# Checkbox-Style FABs

Add the checkbox attribute to display a FAB that acts like a checkbox.

# FAB Labels

Add a label to the FAB by setting the label attribute.