---
title: "BottomAppBarState"
description: "Creates a [BottomAppBarState]."
type: "function"
---

<div class='type'>Function</div>


<a id='references'></a>
<div class='sourceset sourceset-common'>Common</div>


```kotlin
@ExperimentalMaterial3Api
fun BottomAppBarState(
    initialHeightOffsetLimit: Float,
    initialHeightOffset: Float,
    initialContentOffset: Float,
): BottomAppBarState
```


Creates a `BottomAppBarState`.

#### Parameters

| | |
| --- | --- |
| initialHeightOffsetLimit | the initial value for `BottomAppBarState.heightOffsetLimit`, which represents the pixel limit that a bottom app bar is allowed to collapse when the scrollable content is scrolled |
| initialHeightOffset | the initial value for `BottomAppBarState.heightOffset`. The initial offset height offset should be between zero and `initialHeightOffsetLimit`. |
| initialContentOffset | the initial value for `BottomAppBarState.contentOffset` |




