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

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


<h2 id="windowinsetstopheight-insets">windowInsetsTopHeight</h2>

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


```kotlin
fun Modifier.windowInsetsTopHeight(insets: WindowInsets) =
    this then
        DerivedHeightModifierElement(
            insets,
            debugInspectorInfo {
                name = "insetsTopHeight"
                properties["insets"] = insets
            },
            topCalc,
        )
```


Sets the height to that of `insets` at the `top` of the screen.

When used, the `WindowInsets` will respect the consumed insets from
`windowInsetsPadding` and `consumeWindowInsets`, but won't consume any insets.