<h2 id="griditemspan-currentlinespan">GridItemSpan</h2>

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

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

Creates a [GridItemSpan](/jetpack-compose/androidx.compose.foundation/foundation/functions/GridItemSpan) with a specified `currentLineSpan`. This will be the horizontal span for
an item of a [LazyVerticalGrid](/jetpack-compose/androidx.compose.foundation/foundation/composable-functions/LazyVerticalGrid) and the vertical span for a [LazyHorizontalGrid](/jetpack-compose/androidx.compose.foundation/foundation/composable-functions/LazyHorizontalGrid).