Compose Component

FloatingActionButton

Material Design floating action button A floating action button (FAB) represents the primary action of a screen.

FloatingActionButton social preview

SimpleFab

@Sampled
@Composable
fun SimpleFab() {
    FloatingActionButton(onClick = { /*do something*/ }) {
        Icon(Icons.Filled.Favorite, contentDescription = "Localized description")
    }
}
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: