---
title: "LazyStaggeredGridDefaults"
description: "Contains the default values used by [LazyVerticalStaggeredGrid] and [LazyHorizontalStaggeredGrid]."
type: "object"
lastmod: "2026-09-24"
---
## API Reference

> Source set: Common

```kotlin
public object LazyStaggeredGridDefaults
```

Contains the default values used by [LazyVerticalStaggeredGrid](/jetpack-compose/androidx.compose.foundation/foundation/composable-functions/LazyVerticalStaggeredGrid/api) and
[LazyHorizontalStaggeredGrid](/jetpack-compose/androidx.compose.foundation/foundation/composable-functions/LazyHorizontalStaggeredGrid/api).

## Functions

### cacheWindow

> Source set: Common

```kotlin
@Composable
    public fun cacheWindow(state: LazyStaggeredGridState): LazyLayoutCacheWindow
```

Creates and remembers the default [LazyLayoutCacheWindow](/jetpack-compose/androidx.compose.foundation/foundation/functions/LazyLayoutCacheWindow/api) for [LazyVerticalStaggeredGrid](/jetpack-compose/androidx.compose.foundation/foundation/composable-functions/LazyVerticalStaggeredGrid/api) and
[LazyHorizontalStaggeredGrid](/jetpack-compose/androidx.compose.foundation/foundation/composable-functions/LazyHorizontalStaggeredGrid/api).
- Prefetches items ahead in the scroll direction based on the average size of visible items
from [state](/jetpack-compose/androidx.compose.foundation/foundation/functions/state/api), clamped between 10% and 50% of the viewport.
- Does not retain items behind the viewport.
- Does not cache while the user is not scrolling.

#### Parameters

| | |
| --- | --- |
| state | the [LazyStaggeredGridState](/jetpack-compose/androidx.compose.foundation/foundation/classes/LazyStaggeredGridState) used to calculate the average visible item size |

#### Return

the default [LazyLayoutCacheWindow](/jetpack-compose/androidx.compose.foundation/foundation/interfaces/LazyLayoutCacheWindow)
