---
title: "ParentDataModifier"
description: "A [Modifier] that provides data to the parent [Layout]. This can be read from within the the
[Layout] during measurement and positioning, via [IntrinsicMeasurable.parentData]. The parent
data is commonly used to inform the parent how the child [Layout] should be measured and
positioned."
type: "interface"
---

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


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

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



```kotlin
@JvmDefaultWithCompatibility
interface ParentDataModifier : Modifier.Element
```


A `Modifier` that provides data to the parent `Layout`. This can be read from within the the
`Layout` during measurement and positioning, via `IntrinsicMeasurable.parentData`. The parent
data is commonly used to inform the parent how the child `Layout` should be measured and
positioned.


## Functions

```kotlin
fun Density.modifyParentData(parentData: Any?): Any?
```


Provides a parentData, given the `parentData` already provided through the modifier's chain.



