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

```kotlin
@JvmDefaultWithCompatibility
    interface HorizontalOrVertical : Horizontal, Vertical
```

Used to specify the horizontal arrangement of the layout's children in horizontal layouts
like [Row](/jetpack-compose/androidx.compose.foundation/foundation-layout/composable-functions/Row), or the vertical arrangement of the layout's children in vertical layouts like
[Column](/jetpack-compose/androidx.compose.foundation/foundation-layout/composable-functions/Column).

## Properties

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

```kotlin
override val spacing: Dp
```

Spacing that should be added between any two adjacent layout children.