---
title: "rememberBottomDrawerState"
description: "Create and [remember] a [BottomDrawerState]."
type: "composable"
---

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


<a id='references'></a>

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


```kotlin
@Composable
fun rememberBottomDrawerState(
    initialValue: BottomDrawerValue,
    confirmStateChange: (BottomDrawerValue) -> Boolean = { true },
    animationSpec: AnimationSpec<Float> = DrawerDefaults.AnimationSpec,
): BottomDrawerState
```


Create and `remember` a `BottomDrawerState`.

#### Parameters

| | |
| --- | --- |
| initialValue | The initial value of the state. |
| confirmStateChange | Optional callback invoked to confirm or veto a pending state change. |
| animationSpec | The animation spec to be used for open/close animations, as well as settling when a user lets go. |





