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

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


<h2 id="windowinsetspadding-insets">windowInsetsPadding</h2>

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


```kotlin
fun Modifier.windowInsetsPadding(insets: WindowInsets): Modifier
```


Adds padding so that the content doesn't enter `insets` space.

Any insets consumed by other insets padding modifiers or `consumeWindowInsets` on a parent layout
will be excluded from `insets`. `insets` will be `consumed` for child
layouts as well.

For example, if an ancestor uses `statusBarsPadding` and this modifier uses
`WindowInsets.Companion.systemBars`, the portion of the system bars that the status bars uses
will not be padded again by this modifier.