<div class='sourceset sourceset-common'>Common</div>

```kotlin
object BottomAppBarDefaults
```

Contains default values used for the bottom app bar implementations.

## Properties

<div class='sourceset sourceset-common'>Common</div>

```kotlin
val containerColor: Color
```

Default color used for [BottomAppBar](/jetpack-compose/androidx.compose.material3/material3/components/BottomAppBar) container

<div class='sourceset sourceset-common'>Common</div>

```kotlin
val ContainerElevation: Dp
```

Default elevation used for [BottomAppBar](/jetpack-compose/androidx.compose.material3/material3/components/BottomAppBar)

<div class='sourceset sourceset-common'>Common</div>

```kotlin
val ContentPadding =
    PaddingValues(
        start = BottomAppBarHorizontalPadding,
        top = BottomAppBarVerticalPadding,
        end = BottomAppBarHorizontalPadding,
    )
```

Default padding used for [BottomAppBar](/jetpack-compose/androidx.compose.material3/material3/components/BottomAppBar) when content are default size (24dp) icons in
[IconButton](/jetpack-compose/androidx.compose.material3/material3/components/IconButton) that meet the minimum touch target (48.dp).

<div class='sourceset sourceset-common'>Common</div>

```kotlin
val windowInsets: WindowInsets
```

Default insets that will be used and consumed by [BottomAppBar](/jetpack-compose/androidx.compose.material3/material3/components/BottomAppBar).

<div class='sourceset sourceset-common'>Common</div>

```kotlin
val bottomAppBarFabColor: Color
```

The color of a [BottomAppBar](/jetpack-compose/androidx.compose.material3/material3/components/BottomAppBar)'s [FloatingActionButton](/jetpack-compose/androidx.compose.material3/material3/components/FloatingActionButton)

<div class='sourceset sourceset-common'>Common</div>

```kotlin
@ExperimentalMaterial3ExpressiveApi

val FlexibleContentPadding =
    PaddingValues(
        start = DockedToolbarTokens.ContainerLeadingSpace,
        end = DockedToolbarTokens.ContainerTrailingSpace,
    )
```

Default padding used for [FlexibleBottomAppBar](/jetpack-compose/androidx.compose.material3/material3/components/FlexibleBottomAppBar).

<div class='sourceset sourceset-common'>Common</div>

```kotlin
@ExperimentalMaterial3ExpressiveApi
val FlexibleBottomAppBarHeight = DockedToolbarTokens.ContainerHeight
```

Default height of a flexible [FlexibleBottomAppBar](/jetpack-compose/androidx.compose.material3/material3/components/FlexibleBottomAppBar). The height here represents the height of
the bottom app bar in its expanded state.

<div class='sourceset sourceset-common'>Common</div>

```kotlin
@ExperimentalMaterial3ExpressiveApi
val FlexibleHorizontalArrangement: Arrangement.Horizontal
```

A default [Arrangement](/jetpack-compose/androidx.compose.foundation/foundation-layout/objects/Arrangement) that will be used to space a [FlexibleBottomAppBar](/jetpack-compose/androidx.compose.material3/material3/components/FlexibleBottomAppBar)'s content.

<div class='sourceset sourceset-common'>Common</div>

```kotlin
@ExperimentalMaterial3ExpressiveApi
val FlexibleFixedHorizontalArrangement: Arrangement.Horizontal
```

An [Arrangement](/jetpack-compose/androidx.compose.foundation/foundation-layout/objects/Arrangement) that will be used to space [FlexibleBottomAppBar](/jetpack-compose/androidx.compose.material3/material3/components/FlexibleBottomAppBar)'s with a fixed spacing.

## Functions

<h2 id="exitalwaysscrollbehavior-state-canscroll-snapanimationspec-flinganimationspec">exitAlwaysScrollBehavior</h2>

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

Returns a [BottomAppBarScrollBehavior](/jetpack-compose/androidx.compose.material3/material3/interfaces/BottomAppBarScrollBehavior). A bottom app bar that is set up with this
[BottomAppBarScrollBehavior](/jetpack-compose/androidx.compose.material3/material3/interfaces/BottomAppBarScrollBehavior) will immediately collapse when the content is pulled up, and
will immediately appear when the content is pulled down.

The returned [BottomAppBarScrollBehavior](/jetpack-compose/androidx.compose.material3/material3/interfaces/BottomAppBarScrollBehavior) is remembered across compositions.

#### Parameters

| | |
| --- | --- |
| state | the state object to be used to control or observe the bottom app bar's scroll state. See [rememberBottomAppBarState](/jetpack-compose/androidx.compose.material3/material3/composable-functions/rememberBottomAppBarState) for a state that is remembered across compositions. |
| canScroll | a callback used to determine whether scroll events are to be handled by this `ExitAlwaysScrollBehavior` |
| snapAnimationSpec | an optional [AnimationSpec](/jetpack-compose/androidx.compose.animation/animation-core/interfaces/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 |
| flingAnimationSpec | an optional [DecayAnimationSpec](/jetpack-compose/androidx.compose.animation/animation-core/interfaces/DecayAnimationSpec) that defined how to fling the bottom app bar when the user flings the app bar itself, or the content below it |