---
title: "PaddingValues"
description: "Creates a padding of [all] dp along all 4 edges."
type: "function"
---

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


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


```kotlin
fun PaddingValues(all: Dp): PaddingValues
```


Creates a padding of `all` dp along all 4 edges.



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


```kotlin
fun PaddingValues(horizontal: Dp = 0.dp, vertical: Dp = 0.dp): PaddingValues
```


Creates a padding of `horizontal` dp along the left and right edges, and of `vertical` dp along
the top and bottom edges.



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


```kotlin
fun PaddingValues(
    start: Dp = 0.dp,
    top: Dp = 0.dp,
    end: Dp = 0.dp,
    bottom: Dp = 0.dp,
): PaddingValues
```


Creates a padding to be applied along the edges inside a box. In LTR contexts `start` will be
applied along the left edge and `end` will be applied along the right edge. In RTL contexts,
`start` will correspond to the right edge and `end` to the left.



