---
title: "modifierLocalProvider"
description: "A Modifier that can be used to provide [ModifierLocal]s that can be read by other modifiers to
the right of this modifier, or modifiers that are children of the layout node that this modifier
is attached to."
type: "modifier"
---

<div class='type'>Compose Modifier</div>

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


```kotlin
fun <T> Modifier.modifierLocalProvider(key: ProvidableModifierLocal<T>, value: () -> T): Modifier
```


A Modifier that can be used to provide `ModifierLocal`s that can be read by other modifiers to
the right of this modifier, or modifiers that are children of the layout node that this modifier
is attached to.



