🌈 Create new beautiful Compose Gradients with our new wesite ->
Compose Component

ExtendedFloatingActionButton

Material Design extended floating action button The extended FAB is wider than a regular FAB, and it includes a text label.

ExtendedFloatingActionButton social preview

SimpleExtendedFabWithIcon

@Sampled
@Composable
fun SimpleExtendedFabWithIcon() {
    ExtendedFloatingActionButton(
        icon = { Icon(Icons.Filled.Favorite, contentDescription = null) },
        text = { Text("ADD TO BASKET") },
        onClick = { /*do something*/ },
    )
}

FluidExtendedFab

@Sampled
@Composable
fun FluidExtendedFab() {
    ExtendedFloatingActionButton(
        icon = { Icon(Icons.Filled.Favorite, contentDescription = null) },
        text = { Text("FLUID FAB") },
        onClick = { /*do something*/ },
        modifier = Modifier.fillMaxWidth(),
    )
}

Content updated: