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

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


<h2 id="windowinsetsendwidth-insets">windowInsetsEndWidth</h2>

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


```kotlin
fun Modifier.windowInsetsEndWidth(insets: WindowInsets) =
    this then
        DerivedWidthModifierElement(
            insets,
            debugInspectorInfo {
                name = "insetsEndWidth"
                properties["insets"] = insets
            },
            endCalc,
        )
```


Sets the width to that of `insets` at the `end` of the screen,
using either `left` or `right`, depending on the
`LayoutDirection`.

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