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

```kotlin
public object RemoteArrangement
```

In remote-compose, an arrangement is a contract for how to lay out children in a container that
allows for more than one child. This is a mirror of
[androidx.compose.foundation.layout.Arrangement](/jetpack-compose/androidx.compose.foundation/foundation-layout/objects/Arrangement)

## Functions

<h2 id="spacedby-space">spacedBy</h2>

```kotlin
public fun spacedBy(space: RemoteDp): RemoteArrangement.HorizontalOrVertical
```

Place children such that each two adjacent ones are spaced by a fixed `space` distance across
the main axis. The spacing will be subtracted from the available space that the children can
occupy.

#### Parameters

| | |
| --- | --- |
| space | The space between adjacent children. |

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

<h2 id="spacedby-space-2">spacedBy</h2>

```kotlin
public fun spacedBy(space: RemoteFloat): RemoteArrangement.HorizontalOrVertical
```

Place children such that each two adjacent ones are spaced by a fixed `space` distance across
the main axis. The spacing will be subtracted from the available space that the children can
occupy.

#### Parameters

| | |
| --- | --- |
| space | The space between adjacent children. |

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

<h2 id="spacedby-space-alignment">spacedBy</h2>

```kotlin
public fun spacedBy(
        space: RemoteDp,
        alignment: RemoteAlignment.Horizontal,
    ): RemoteArrangement.Horizontal
```

Place children horizontally such that each two adjacent ones are spaced by a fixed `space`
distance. The spacing will be subtracted from the available width that the children can
occupy. An [alignment](/jetpack-compose/androidx.compose.ui/ui/interfaces/Alignment) can be specified to align the spaced children horizontally inside the
parent, in case there is empty width remaining.

#### Parameters

| | |
| --- | --- |
| space | The space between adjacent children. |
| alignment | The alignment of the spaced children inside the parent. |

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

<h2 id="spacedby-space-alignment-2">spacedBy</h2>

```kotlin
public fun spacedBy(
        space: RemoteFloat,
        alignment: RemoteAlignment.Horizontal,
    ): RemoteArrangement.Horizontal
```

Place children horizontally such that each two adjacent ones are spaced by a fixed `space`
distance. The spacing will be subtracted from the available width that the children can
occupy. An [alignment](/jetpack-compose/androidx.compose.ui/ui/interfaces/Alignment) can be specified to align the spaced children horizontally inside the
parent, in case there is empty width remaining.

#### Parameters

| | |
| --- | --- |
| space | The space between adjacent children. |
| alignment | The alignment of the spaced children inside the parent. |

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

<h2 id="spacedby-space-alignment-3">spacedBy</h2>

```kotlin
public fun spacedBy(
        space: RemoteDp,
        alignment: RemoteAlignment.Vertical,
    ): RemoteArrangement.Vertical
```

Place children vertically such that each two adjacent ones are spaced by a fixed `space`
distance. The spacing will be subtracted from the available height that the children can
occupy. An [alignment](/jetpack-compose/androidx.compose.ui/ui/interfaces/Alignment) can be specified to align the spaced children vertically inside the
parent, in case there is empty height remaining.

#### Parameters

| | |
| --- | --- |
| space | The space between adjacent children. |
| alignment | The alignment of the spaced children inside the parent. |

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

<h2 id="spacedby-space-alignment-4">spacedBy</h2>

```kotlin
public fun spacedBy(
        space: RemoteFloat,
        alignment: RemoteAlignment.Vertical,
    ): RemoteArrangement.Vertical
```

Place children vertically such that each two adjacent ones are spaced by a fixed `space`
distance. The spacing will be subtracted from the available height that the children can
occupy. An [alignment](/jetpack-compose/androidx.compose.ui/ui/interfaces/Alignment) can be specified to align the spaced children vertically inside the
parent, in case there is empty height remaining.

#### Parameters

| | |
| --- | --- |
| space | The space between adjacent children. |
| alignment | The alignment of the spaced children inside the parent. |