<h2 id="size-width-height">size</h2>

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

```kotlin
public fun RemoteModifier.size(width: RemoteDp, height: RemoteDp): RemoteModifier
```

Sets the width and height of the content.

#### Parameters

| | |
| --- | --- |
| width | The width to apply. |
| height | The height to apply. |

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

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

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

```kotlin
public fun RemoteModifier.size(size: RemoteDp): RemoteModifier
```

Sets both the width and height of the content to [size](/jetpack-compose/androidx.compose.remote/remote-creation-compose/functions/size).