---
title: "LazyGridItemInfo"
description: "Contains useful information about an individual item in lazy grids like [LazyVerticalGrid]."
type: "interface"
---

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


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

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



```kotlin
sealed interface LazyGridItemInfo
```


Contains useful information about an individual item in lazy grids like `LazyVerticalGrid`.


## Properties

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


```kotlin
val index: Int
```


The index of the item in the grid.



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


```kotlin
val key: Any
```


The key of the item which was passed to the item() or items() function.



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


```kotlin
val offset: IntOffset
```


The offset of the item in pixels. It is relative to the top start of the lazy grid container.



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


```kotlin
val row: Int
```


The row occupied by the top start point of the item. If this is unknown, for example while
this item is animating to exit the viewport and is still visible, the value will be
`UnknownRow`.



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


```kotlin
val column: Int
```


The column occupied by the top start point of the item. If this is unknown, for example while
this item is animating to exit the viewport and is still visible, the value will be
`UnknownColumn`.



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


```kotlin
val size: IntSize
```


The pixel size of the item. Note that if you emit multiple layouts in the composable slot for
the item then this size will be calculated as the max of their sizes.



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


```kotlin
val contentType: Any?
```


The content type of the item which was passed to the item() or items() function.



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


```kotlin
val span: Int
```


The horizontal span of the item if it's in a `LazyVerticalGrid` or the vertical span if the
item is in a `LazyHorizontalGrid`.

Note, `LazyGridLayoutInfo.maxSpan` can be used to get the maximum number of spans in a line,
e.g., to check if the item is filling the whole line.




