---
title: "GridItemSpan"
description: "Creates a [GridItemSpan] with a specified [currentLineSpan]. This will be the horizontal span for
an item of a [LazyVerticalGrid] and the vertical span for a [LazyHorizontalGrid]."
type: "function"
---

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


<a id='references'></a>
<div class='sourceset sourceset-common'>Common</div>


```kotlin
fun GridItemSpan(@IntRange(from = 1) currentLineSpan: Int): GridItemSpan
```


Creates a `GridItemSpan` with a specified `currentLineSpan`. This will be the horizontal span for
an item of a `LazyVerticalGrid` and the vertical span for a `LazyHorizontalGrid`.



