---
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: "interface"
---

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


<a id='references'></a>

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



```kotlin
@JvmDefaultWithCompatibility
interface ModifierLocalProvider<T> : Modifier.Element
```


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.


## Properties

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


```kotlin
val key: ProvidableModifierLocal<T>
```


Each `ModifierLocalProvider` stores a `ModifierLocal` instance that can be used as a key by a
`ModifierLocalConsumer` to read the provided value.



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


```kotlin
val value: T
```


The provided value, that can be read by modifiers on the right of this modifier, and
modifiers added to children of the composable using this modifier.




