# ExtendedFloatingActionButton

> ExtendedFloatingActionButton from Material Compose (`androidx.compose.material:material`) for Jetpack Compose, with a code sample.

- Library: [Material Compose](https://composables.com/material-components/material-compose.md)
- Category: [Buttons](https://composables.com/material-components/buttons.md)
- Category: [Floating Action Buttons](https://composables.com/material-components/floating-action-buttons.md)
- API reference and more examples: [ExtendedFloatingActionButton](https://composables.com/jetpack-compose/androidx.compose.material/material/components/ExtendedFloatingActionButton/api.md)

## Code

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