<h2 id="requiredheightin-min-max">requiredHeightIn</h2>

<div class='sourceset sourceset-android'>Android</div>

```kotlin
public fun SubspaceModifier.requiredHeightIn(
    min: Dp = Dp.Unspecified,
    max: Dp = Dp.Unspecified,
): SubspaceModifier
```

Constrain the height of the content to be between `min` dp and `max` dp, disregarding the
incoming measurement [VolumeConstraints](/jetpack-compose/androidx.xr.compose/compose/classes/VolumeConstraints).

This is in contrast to [SubspaceModifier.heightIn](/jetpack-compose/androidx.xr.compose/compose/functions/heightIn), which respects the parent's constraints.
`requiredHeightIn` will ignore the `minHeight` and `maxHeight` from the incoming constraints.

#### Parameters

| | |
| --- | --- |
| min | The minimum height. |
| max | The maximum height. |