---
title: "RemoteRow"
description: "A layout composable that positions its children in a horizontal sequence."
type: "composable"
---
## API Reference

### RemoteRow

> Source set: Android

```kotlin
@Composable
public fun RemoteRow(
    modifier: RemoteModifier = RemoteModifier,
    horizontalArrangement: RemoteArrangement.Horizontal = RemoteArrangement.Start,
    verticalAlignment: RemoteAlignment.Vertical = RemoteAlignment.Top,
    content: @Composable RemoteRowScope.() -> Unit,
)
```

A layout composable that positions its children in a horizontal sequence.

`RemoteRow` allows you to arrange children horizontally and control their `horizontalArrangement`
(spacing) and `verticalAlignment`.

#### Parameters

| | |
| --- | --- |
| modifier | The modifier to be applied to this row. |
| horizontalArrangement | The horizontal arrangement of the children. |
| verticalAlignment | The vertical alignment of the children. |
| content | The content of the row, which has access to [RemoteRowScope](/jetpack-compose/androidx.compose.remote/remote-creation-compose/classes/RemoteRowScope). |

## Code Examples

### RemoteRowSample

```kotlin
@Sampled
@PreviewWrapper(RemoteComponentPreviewWrapper::class)
@Composable
fun RemoteRowSample() {
    RemoteRow(horizontalArrangement = RemoteArrangement.spacedBy(8.rdp)) {
        RemoteText("Item A".rs, color = Color.Red.rc)
        RemoteText("Item B".rs, color = Color.Green.rc)
        RemoteText("Item C".rs, color = Color.Blue.rc)
    }
}
```

### RemoteRowWeightSample

```kotlin
@Sampled
@PreviewWrapper(RemoteComponentPreviewWrapper::class)
@Composable
fun RemoteRowWeightSample() {
    RemoteRow(modifier = RemoteModifier.width(200.rdp)) {
        RemoteBox(modifier = RemoteModifier.weight(1f).background(Color.Red.rc))
        RemoteBox(modifier = RemoteModifier.weight(2f).background(Color.Blue.rc))
    }
}
```
