---
title: "rememberScaffoldState"
description: "Creates a [ScaffoldState] with the default animation clock and memoizes it."
type: "composable"
---

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


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

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


```kotlin
@Composable
fun rememberScaffoldState(
    drawerState: DrawerState = rememberDrawerState(DrawerValue.Closed),
    snackbarHostState: SnackbarHostState = remember { SnackbarHostState() },
): ScaffoldState
```


Creates a `ScaffoldState` with the default animation clock and memoizes it.

#### Parameters

| | |
| --- | --- |
| drawerState | the drawer state |
| snackbarHostState | instance of `SnackbarHostState` to be used to show `Snackbar`s inside of the `Scaffold` |





