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

```kotlin
@LayoutScopeMarker
public interface SpatialBoxScope
```

Scope for the children of [SpatialBox](/jetpack-compose/androidx.xr.compose/compose/composable-functions/SpatialBox).

## Functions

<h2 id="align-alignment">align</h2>

```kotlin
public fun SubspaceModifier.align(alignment: SpatialAlignment): SubspaceModifier
```

Positions the content element at a specific [SpatialAlignment](/jetpack-compose/androidx.xr.compose/compose/interfaces/SpatialAlignment) within the [SpatialBox](/jetpack-compose/androidx.xr.compose/compose/composable-functions/SpatialBox). This
alignment overrides the default [alignment](/jetpack-compose/androidx.compose.ui/ui/interfaces/Alignment) of the [SpatialBox](/jetpack-compose/androidx.xr.compose/compose/composable-functions/SpatialBox).

#### Parameters

| | |
| --- | --- |
| alignment | The desired alignment for the content. |

#### Returns

| | |
| --- | --- |
|  | The modified SubspaceModifier. |