<h2 id="depth-depth">depth</h2>

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

```kotlin
public fun SubspaceModifier.depth(depth: Dp): SubspaceModifier
```

Declare the preferred size of the content to be exactly [depth](/jetpack-compose/androidx.xr.compose/compose/functions/depth) dp along the z dimension. Panels
have 0 depth and ignore this modifier.