---
title: "rememberModalBottomSheetState"
description: "Create and [remember] a [SheetState] for [ModalBottomSheet]."
type: "composable"
---

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


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

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


```kotlin
@Composable
@ExperimentalMaterial3Api
fun rememberModalBottomSheetState(
    skipPartiallyExpanded: Boolean = false,
    confirmValueChange: (SheetValue) -> Boolean = { true },
) =
    rememberSheetState(
        skipPartiallyExpanded = skipPartiallyExpanded,
        confirmValueChange = confirmValueChange,
        initialValue = Hidden,
    )
```


Create and `remember` a `SheetState` for `ModalBottomSheet`.

#### Parameters

| | |
| --- | --- |
| skipPartiallyExpanded | Whether the partially expanded state, if the sheet is tall enough, should be skipped. If true, the sheet will always expand to the `Expanded` state and move to the `Hidden` state when hiding the sheet, either programmatically or by user interaction. |
| confirmValueChange | Optional callback invoked to confirm or veto a pending state change. |





