---
title: "calculateStartPadding"
description: "The padding to be applied along the start edge inside a box: along the left edge if the layout
direction is LTR, or along the right edge for RTL."
type: "function"
---

<div class='type'>Function</div>


<a id='references'></a>
<div class='sourceset sourceset-common'>Common</div>


```kotlin
fun PaddingValues.calculateStartPadding(layoutDirection: LayoutDirection) =
    if (layoutDirection == LayoutDirection.Ltr) {
        calculateLeftPadding(layoutDirection)
    } else {
        calculateRightPadding(layoutDirection)
    }
```


The padding to be applied along the start edge inside a box: along the left edge if the layout
direction is LTR, or along the right edge for RTL.



