Floating action button

A floating action button represents the primary action in an application.

Floating Action Button

Maven Central Class reference Source code

Default

Day Night
FloatingActionButton component FloatingActionButton component - dark mode

Installation

Backpack Compose is available through Maven Central. Check the main Readme for a complete installation guide.

Usage

Example of a BpkFab:


                                                
                                                import net.skyscanner.backpack.compose.fab.BpkFab
                                                import net.skyscanner.backpack.compose.icon.BpkIcon
                                                import net.skyscanner.backpack.compose.tokens.Search
                                                
                                                BpkFab(
                                                  onClick = {},
                                                  icon = BpkIcon.Search,
                                                  contentDescription = "Content description",
                                                )