<h2 id="sizein-minwidth-maxwidth-minheight-maxheight-mindepth-maxdepth">sizeIn</h2>

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

```kotlin
public fun SubspaceModifier.sizeIn(
    minWidth: Dp = Dp.Unspecified,
    maxWidth: Dp = Dp.Unspecified,
    minHeight: Dp = Dp.Unspecified,
    maxHeight: Dp = Dp.Unspecified,
    minDepth: Dp = Dp.Unspecified,
    maxDepth: Dp = Dp.Unspecified,
): SubspaceModifier
```

Constrain the size of the content to be between min and max dp as permitted by the incoming
measurement constraints. If the incoming constraints are more restrictive the requested size will
obey the incoming constraints and attempt to be as close as possible to the preferred size.

#### Parameters

| | |
| --- | --- |
| minWidth | The minimum width. |
| maxWidth | The maximum width. |
| minHeight | The minimum height. |
| maxHeight | The maximum height. |
| minDepth | The minimum depth. |
| maxDepth | The maximum depth. |