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

```kotlin
sealed interface PinnedItem
```

Item pinned in a lazy layout. Pinned item should be always measured and laid out, even if the
item is beyond the boundaries of the layout.

Note: this interface is a part of [LazyLayout](/jetpack-compose/androidx.compose.foundation/foundation/composable-functions/LazyLayout) harness that allows for building custom lazy
layouts. LazyLayout and all corresponding APIs are still under development and are subject to
change.

## Properties

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

```kotlin
val key: Any?
```

Key of the pinned item.

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

```kotlin
val index: Int
```

Last known index of the pinned item. Note: it is possible for index to change during
lifetime of the object.