---
title: "modifierLocalConsumer"
description: "A Modifier that can be used to consume [ModifierLocal]s that were provided by other modifiers to
the left of this modifier, or above this modifier in the layout tree."
type: "modifier"
---

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

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


```kotlin
fun Modifier.modifierLocalConsumer(consumer: ModifierLocalReadScope.() -> Unit): Modifier
```


A Modifier that can be used to consume `ModifierLocal`s that were provided by other modifiers to
the left of this modifier, or above this modifier in the layout tree.



