<h2 id="padding-left-top-right-bottom">padding</h2>

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

```kotlin
public fun RemoteModifier.padding(
    left: RemoteFloat = 0f.rf,
    top: RemoteFloat = 0f.rf,
    right: RemoteFloat = 0f.rf,
    bottom: RemoteFloat = 0f.rf,
): RemoteModifier
```

Adds padding to each edge of the content.

#### Parameters

| | |
| --- | --- |
| left | Padding at the left edge. |
| top | Padding at the top edge. |
| right | Padding at the right edge. |
| bottom | Padding at the bottom edge. |

<hr class="docs-overload-divider">

<h2 id="padding-all">padding</h2>

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

```kotlin
public fun RemoteModifier.padding(all: RemoteFloat): RemoteModifier
```

Adds `all` padding to each edge of the content.

<hr class="docs-overload-divider">

<h2 id="padding-horizontal-vertical">padding</h2>

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

```kotlin
public fun RemoteModifier.padding(
    horizontal: RemoteFloat = 0f.rf,
    vertical: RemoteFloat = 0f.rf,
): RemoteModifier
```

Adds `horizontal` padding to the left and right edges, and `vertical` padding to the top and
bottom edges.

<hr class="docs-overload-divider">

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

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

```kotlin
public fun RemoteModifier.padding(padding: RemotePaddingValues): RemoteModifier
```

Adds padding defined by the [padding](/jetpack-compose/androidx.compose.remote/remote-creation-compose/functions/padding) object.

<hr class="docs-overload-divider">

<h2 id="padding-all-2">padding</h2>

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

```kotlin
public fun RemoteModifier.padding(all: RemoteDp): RemoteModifier
```

Adds `all` padding to each edge of the content.

<hr class="docs-overload-divider">

<h2 id="padding-left-top-right-bottom-2">padding</h2>

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

```kotlin
public fun RemoteModifier.padding(
    left: RemoteDp = 0.rdp,
    top: RemoteDp = 0.rdp,
    right: RemoteDp = 0.rdp,
    bottom: RemoteDp = 0.rdp,
): RemoteModifier
```

Adds padding to each edge of the content using [RemoteDp](/jetpack-compose/androidx.compose.remote/remote-creation-compose/classes/RemoteDp) values.

#### Parameters

| | |
| --- | --- |
| left | Padding at the left edge. |
| top | Padding at the top edge. |
| right | Padding at the right edge. |
| bottom | Padding at the bottom edge. |

<hr class="docs-overload-divider">

<h2 id="padding-horizontal-vertical-2">padding</h2>

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

```kotlin
public fun RemoteModifier.padding(
    horizontal: RemoteDp = 0.rdp,
    vertical: RemoteDp = 0.rdp,
): RemoteModifier
```

Adds `horizontal` padding to the left and right edges, and `vertical` padding to the top and
bottom edges.