# BottomAppBarDefaults

Artifact: [androidx.compose.material3:material3](https://developer.android.com/jetpack/androidx/releases/compose-material3) [View Source](https://cs.android.com/search?q=file:androidx/compose/material3/AppBar.kt+class:androidx.compose.material3.BottomAppBarDefaults) Common/AllAndroid/JVM
- Cmn

  ```
  object BottomAppBarDefaults
  ```

*** ** * ** ***

Contains default values used for the bottom app bar implementations.

## Summary

| ### Public functions |
|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/material3/BottomAppBarScrollBehavior` | `@https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable https://developer.android.com/reference/kotlin/androidx/compose/material3/BottomAppBarDefaults#exitAlwaysScrollBehavior(androidx.compose.material3.BottomAppBarState,kotlin.Function0,androidx.compose.animation.core.AnimationSpec,androidx.compose.animation.core.DecayAnimationSpec)( state: https://developer.android.com/reference/kotlin/androidx/compose/material3/BottomAppBarState, canScroll: () -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html, snapAnimationSpec: https://developer.android.com/reference/kotlin/androidx/compose/animation/core/AnimationSpec<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html>?, flingAnimationSpec: https://developer.android.com/reference/kotlin/androidx/compose/animation/core/DecayAnimationSpec<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html>? )` Returns a `https://developer.android.com/reference/kotlin/androidx/compose/material3/BottomAppBarScrollBehavior`. | Cmn |

| ### Public properties |
|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/BottomAppBarDefaults#ContainerElevation()` Default elevation used for `https://developer.android.com/reference/kotlin/androidx/compose/material3/BottomAppBar.composable#BottomAppBar(kotlin.Function1,androidx.compose.ui.Modifier,kotlin.Function0,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.unit.Dp,androidx.compose.foundation.layout.PaddingValues,androidx.compose.foundation.layout.WindowInsets,androidx.compose.material3.BottomAppBarScrollBehavior)` | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/PaddingValues` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/BottomAppBarDefaults#ContentPadding()` Default padding used for `https://developer.android.com/reference/kotlin/androidx/compose/material3/BottomAppBar.composable#BottomAppBar(kotlin.Function1,androidx.compose.ui.Modifier,kotlin.Function0,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.unit.Dp,androidx.compose.foundation.layout.PaddingValues,androidx.compose.foundation.layout.WindowInsets,androidx.compose.material3.BottomAppBarScrollBehavior)` when content are default size (24dp) icons in `https://developer.android.com/reference/kotlin/androidx/compose/material3/IconButton.composable#IconButton(kotlin.Function0,androidx.compose.ui.Modifier,kotlin.Boolean,androidx.compose.material3.IconButtonColors,androidx.compose.foundation.interaction.MutableInteractionSource,androidx.compose.ui.graphics.Shape,kotlin.Function0)` that meet the minimum touch target (48.dp). | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/BottomAppBarDefaults#FlexibleBottomAppBarHeight()` Default height of a flexible `https://developer.android.com/reference/kotlin/androidx/compose/material3/FlexibleBottomAppBar.composable#FlexibleBottomAppBar(androidx.compose.ui.Modifier,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.foundation.layout.PaddingValues,androidx.compose.foundation.layout.Arrangement.Horizontal,androidx.compose.ui.unit.Dp,androidx.compose.foundation.layout.WindowInsets,androidx.compose.material3.BottomAppBarScrollBehavior,kotlin.Function1)`. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/PaddingValues` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/BottomAppBarDefaults#FlexibleContentPadding()` Default padding used for `https://developer.android.com/reference/kotlin/androidx/compose/material3/FlexibleBottomAppBar.composable#FlexibleBottomAppBar(androidx.compose.ui.Modifier,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.foundation.layout.PaddingValues,androidx.compose.foundation.layout.Arrangement.Horizontal,androidx.compose.ui.unit.Dp,androidx.compose.foundation.layout.WindowInsets,androidx.compose.material3.BottomAppBarScrollBehavior,kotlin.Function1)`. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/Arrangement.Horizontal` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/BottomAppBarDefaults#FlexibleFixedHorizontalArrangement()` An `https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/Arrangement` that will be used to space `https://developer.android.com/reference/kotlin/androidx/compose/material3/FlexibleBottomAppBar.composable#FlexibleBottomAppBar(androidx.compose.ui.Modifier,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.foundation.layout.PaddingValues,androidx.compose.foundation.layout.Arrangement.Horizontal,androidx.compose.ui.unit.Dp,androidx.compose.foundation.layout.WindowInsets,androidx.compose.material3.BottomAppBarScrollBehavior,kotlin.Function1)`'s with a fixed spacing. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/Arrangement.Horizontal` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/BottomAppBarDefaults#FlexibleHorizontalArrangement()` A default `https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/Arrangement` that will be used to space a `https://developer.android.com/reference/kotlin/androidx/compose/material3/FlexibleBottomAppBar.composable#FlexibleBottomAppBar(androidx.compose.ui.Modifier,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.foundation.layout.PaddingValues,androidx.compose.foundation.layout.Arrangement.Horizontal,androidx.compose.ui.unit.Dp,androidx.compose.foundation.layout.WindowInsets,androidx.compose.material3.BottomAppBarScrollBehavior,kotlin.Function1)`'s content. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/BottomAppBarDefaults#bottomAppBarFabColor()` The color of a `https://developer.android.com/reference/kotlin/androidx/compose/material3/BottomAppBar.composable#BottomAppBar(kotlin.Function1,androidx.compose.ui.Modifier,kotlin.Function0,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.unit.Dp,androidx.compose.foundation.layout.PaddingValues,androidx.compose.foundation.layout.WindowInsets,androidx.compose.material3.BottomAppBarScrollBehavior)`'s `https://developer.android.com/reference/kotlin/androidx/compose/material3/FloatingActionButton.composable#FloatingActionButton(kotlin.Function0,androidx.compose.ui.Modifier,androidx.compose.ui.graphics.Shape,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.material3.FloatingActionButtonElevation,androidx.compose.foundation.interaction.MutableInteractionSource,kotlin.Function0)` | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/BottomAppBarDefaults#containerColor()` Default color used for `https://developer.android.com/reference/kotlin/androidx/compose/material3/BottomAppBar.composable#BottomAppBar(kotlin.Function1,androidx.compose.ui.Modifier,kotlin.Function0,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.unit.Dp,androidx.compose.foundation.layout.PaddingValues,androidx.compose.foundation.layout.WindowInsets,androidx.compose.material3.BottomAppBarScrollBehavior)` container | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/animation/core/DecayAnimationSpec<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html>` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/BottomAppBarDefaults#flingAnimationSpec()` Default `https://developer.android.com/reference/kotlin/androidx/compose/animation/core/DecayAnimationSpec` that defines how to fling the bottom app bar when the user flings the app bar itself, or the scrollable content. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/animation/core/AnimationSpec<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html>` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/BottomAppBarDefaults#snapAnimationSpec()` Default `https://developer.android.com/reference/kotlin/androidx/compose/animation/core/AnimationSpec` that defines how the bottom app bar snaps to either fully collapsed or fully extended state when a fling or a drag scrolled it into an intermediate position. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/WindowInsets` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/BottomAppBarDefaults#windowInsets()` Default insets that will be used and consumed by `https://developer.android.com/reference/kotlin/androidx/compose/material3/BottomAppBar.composable#BottomAppBar(kotlin.Function1,androidx.compose.ui.Modifier,kotlin.Function0,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.unit.Dp,androidx.compose.foundation.layout.PaddingValues,androidx.compose.foundation.layout.WindowInsets,androidx.compose.material3.BottomAppBarScrollBehavior)`. | Cmn |

## Public functions

### exitAlwaysScrollBehavior

Cmn

```
@Composable
fun exitAlwaysScrollBehavior(
    state: BottomAppBarState = rememberBottomAppBarState(),
    canScroll: () -> Boolean = { true },
    snapAnimationSpec: AnimationSpec<Float>? = BottomAppBarDefaults.snapAnimationSpec,
    flingAnimationSpec: DecayAnimationSpec<Float>? = BottomAppBarDefaults.flingAnimationSpec
): BottomAppBarScrollBehavior
```

Returns a `https://developer.android.com/reference/kotlin/androidx/compose/material3/BottomAppBarScrollBehavior`. A bottom app bar that is set up with this `https://developer.android.com/reference/kotlin/androidx/compose/material3/BottomAppBarScrollBehavior` will immediately collapse when the content is pulled up, and will immediately appear when the content is pulled down. Note: Scroll behavior is automatically disabled when a touch exploration service (e.g. TalkBack) is active to preserve accessibility.

The returned `https://developer.android.com/reference/kotlin/androidx/compose/material3/BottomAppBarScrollBehavior` is remembered across compositions.

| Parameters |
|---|---|
| `state: https://developer.android.com/reference/kotlin/androidx/compose/material3/BottomAppBarState = rememberBottomAppBarState()` | the state object to be used to control or observe the bottom app bar's scroll state. See `https://developer.android.com/reference/kotlin/androidx/compose/material3/rememberBottomAppBarState.composable#rememberBottomAppBarState(kotlin.Float,kotlin.Float,kotlin.Float)` for a state that is remembered across compositions. |
| `canScroll: () -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html = { true }` | a callback used to determine whether scroll events are to be handled by this `https://developer.android.com/reference/kotlin/androidx/compose/material3/ExitAlwaysScrollBehavior` |
| `snapAnimationSpec: https://developer.android.com/reference/kotlin/androidx/compose/animation/core/AnimationSpec<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html>? = BottomAppBarDefaults.snapAnimationSpec` | an optional `https://developer.android.com/reference/kotlin/androidx/compose/animation/core/AnimationSpec` that defines how the bottom app bar snaps to either fully collapsed or fully extended state when a fling or a drag scrolled it into an intermediate position. If `null` is provided, the app bar will not snap and will remain in its current state. |
| `flingAnimationSpec: https://developer.android.com/reference/kotlin/androidx/compose/animation/core/DecayAnimationSpec<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html>? = BottomAppBarDefaults.flingAnimationSpec` | an optional `https://developer.android.com/reference/kotlin/androidx/compose/animation/core/DecayAnimationSpec` that defines how to fling the bottom app bar when the user flings the app bar itself, or the scrollable content. If `null` is provided, the app bar will not continue to animate its height based on the scroll velocity. |

## Public properties

### ContainerElevation

Cmn

```
val ContainerElevation: Dp
```

Default elevation used for `https://developer.android.com/reference/kotlin/androidx/compose/material3/BottomAppBar.composable#BottomAppBar(kotlin.Function1,androidx.compose.ui.Modifier,kotlin.Function0,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.unit.Dp,androidx.compose.foundation.layout.PaddingValues,androidx.compose.foundation.layout.WindowInsets,androidx.compose.material3.BottomAppBarScrollBehavior)`

### ContentPadding

Cmn

```
val ContentPadding: PaddingValues
```

Default padding used for `https://developer.android.com/reference/kotlin/androidx/compose/material3/BottomAppBar.composable#BottomAppBar(kotlin.Function1,androidx.compose.ui.Modifier,kotlin.Function0,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.unit.Dp,androidx.compose.foundation.layout.PaddingValues,androidx.compose.foundation.layout.WindowInsets,androidx.compose.material3.BottomAppBarScrollBehavior)` when content are default size (24dp) icons in `https://developer.android.com/reference/kotlin/androidx/compose/material3/IconButton.composable#IconButton(kotlin.Function0,androidx.compose.ui.Modifier,kotlin.Boolean,androidx.compose.material3.IconButtonColors,androidx.compose.foundation.interaction.MutableInteractionSource,androidx.compose.ui.graphics.Shape,kotlin.Function0)` that meet the minimum touch target (48.dp).

### FlexibleBottomAppBarHeight

Cmn

```
val FlexibleBottomAppBarHeight: Dp
```

Default height of a flexible `https://developer.android.com/reference/kotlin/androidx/compose/material3/FlexibleBottomAppBar.composable#FlexibleBottomAppBar(androidx.compose.ui.Modifier,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.foundation.layout.PaddingValues,androidx.compose.foundation.layout.Arrangement.Horizontal,androidx.compose.ui.unit.Dp,androidx.compose.foundation.layout.WindowInsets,androidx.compose.material3.BottomAppBarScrollBehavior,kotlin.Function1)`. The height here represents the height of the bottom app bar in its expanded state.

### FlexibleContentPadding

Cmn

```
val FlexibleContentPadding: PaddingValues
```

Default padding used for `https://developer.android.com/reference/kotlin/androidx/compose/material3/FlexibleBottomAppBar.composable#FlexibleBottomAppBar(androidx.compose.ui.Modifier,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.foundation.layout.PaddingValues,androidx.compose.foundation.layout.Arrangement.Horizontal,androidx.compose.ui.unit.Dp,androidx.compose.foundation.layout.WindowInsets,androidx.compose.material3.BottomAppBarScrollBehavior,kotlin.Function1)`.

### FlexibleFixedHorizontalArrangement

Cmn

```
val FlexibleFixedHorizontalArrangement: Arrangement.Horizontal
```

An `https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/Arrangement` that will be used to space `https://developer.android.com/reference/kotlin/androidx/compose/material3/FlexibleBottomAppBar.composable#FlexibleBottomAppBar(androidx.compose.ui.Modifier,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.foundation.layout.PaddingValues,androidx.compose.foundation.layout.Arrangement.Horizontal,androidx.compose.ui.unit.Dp,androidx.compose.foundation.layout.WindowInsets,androidx.compose.material3.BottomAppBarScrollBehavior,kotlin.Function1)`'s with a fixed spacing.

### FlexibleHorizontalArrangement

Cmn

```
val FlexibleHorizontalArrangement: Arrangement.Horizontal
```

A default `https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/Arrangement` that will be used to space a `https://developer.android.com/reference/kotlin/androidx/compose/material3/FlexibleBottomAppBar.composable#FlexibleBottomAppBar(androidx.compose.ui.Modifier,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.foundation.layout.PaddingValues,androidx.compose.foundation.layout.Arrangement.Horizontal,androidx.compose.ui.unit.Dp,androidx.compose.foundation.layout.WindowInsets,androidx.compose.material3.BottomAppBarScrollBehavior,kotlin.Function1)`'s content.

### bottomAppBarFabColor

Cmn

```
val bottomAppBarFabColor: Color
```

The color of a `https://developer.android.com/reference/kotlin/androidx/compose/material3/BottomAppBar.composable#BottomAppBar(kotlin.Function1,androidx.compose.ui.Modifier,kotlin.Function0,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.unit.Dp,androidx.compose.foundation.layout.PaddingValues,androidx.compose.foundation.layout.WindowInsets,androidx.compose.material3.BottomAppBarScrollBehavior)`'s `https://developer.android.com/reference/kotlin/androidx/compose/material3/FloatingActionButton.composable#FloatingActionButton(kotlin.Function0,androidx.compose.ui.Modifier,androidx.compose.ui.graphics.Shape,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.material3.FloatingActionButtonElevation,androidx.compose.foundation.interaction.MutableInteractionSource,kotlin.Function0)`

### containerColor

Cmn

```
val containerColor: Color
```

Default color used for `https://developer.android.com/reference/kotlin/androidx/compose/material3/BottomAppBar.composable#BottomAppBar(kotlin.Function1,androidx.compose.ui.Modifier,kotlin.Function0,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.unit.Dp,androidx.compose.foundation.layout.PaddingValues,androidx.compose.foundation.layout.WindowInsets,androidx.compose.material3.BottomAppBarScrollBehavior)` container

### flingAnimationSpec

Cmn

```
val flingAnimationSpec: DecayAnimationSpec<Float>
```

Default `https://developer.android.com/reference/kotlin/androidx/compose/animation/core/DecayAnimationSpec` that defines how to fling the bottom app bar when the user flings the app bar itself, or the scrollable content.

### snapAnimationSpec

Cmn

```
val snapAnimationSpec: AnimationSpec<Float>
```

Default `https://developer.android.com/reference/kotlin/androidx/compose/animation/core/AnimationSpec` that defines how the bottom app bar snaps to either fully collapsed or fully extended state when a fling or a drag scrolled it into an intermediate position.

### windowInsets

Cmn

```
val windowInsets: WindowInsets
```

Default insets that will be used and consumed by `https://developer.android.com/reference/kotlin/androidx/compose/material3/BottomAppBar.composable#BottomAppBar(kotlin.Function1,androidx.compose.ui.Modifier,kotlin.Function0,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.unit.Dp,androidx.compose.foundation.layout.PaddingValues,androidx.compose.foundation.layout.WindowInsets,androidx.compose.material3.BottomAppBarScrollBehavior)`.