<h2 id="lazylayoutpinnableitem-key-index-pinneditemlist-content">LazyLayoutPinnableItem</h2>

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

```kotlin
@Composable
fun LazyLayoutPinnableItem(
    key: Any?,
    index: Int,
    pinnedItemList: LazyLayoutPinnedItemList,
    content: @Composable () -> Unit,
)
```

Wrapper supporting [PinnableContainer](/jetpack-compose/androidx.compose.ui/ui/interfaces/PinnableContainer) in lazy layout items. Each pinned item is considered
important to keep alive even if it would be discarded otherwise.

Note: this function 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.

#### Parameters

| | |
| --- | --- |
| key | key of the item inside the lazy layout |
| index | index of the item inside the lazy layout |
| pinnedItemList | container of currently pinned items |
| content | inner content of this item |