# SpatialTopAppBar

> XR-specific SingleRowTopAppBar that displays a single-row top app bar inside a top-aligned `Orbiter`.

## API Reference

### SpatialTopAppBar

> Source set: Android

```kotlin
@Composable
public fun SpatialTopAppBar(
    title: @Composable () -> Unit,
    modifier: Modifier = Modifier,
    navigationIcon: @Composable () -> Unit = {},
    actions: @Composable RowScope.() -> Unit = {},
    windowInsets: WindowInsets = TopAppBarDefaults.windowInsets,
    colors: TopAppBarColors = TopAppBarDefaults.topAppBarColors(),
    scrollBehavior: TopAppBarScrollBehavior? = null,
)
```

#### Parameters

| | |
| --- | --- |
| title | the title to be displayed in the top app bar |
| modifier | the [Modifier](https://composables.com/jetpack-compose/androidx.compose.ui/ui/interfaces/Modifier/api.md) to be applied to this top app bar |
| navigationIcon | optional navigation icon to be displayed at the start of the top app bar |
| actions | optional actions to be displayed at the end of the top app bar |
| windowInsets | a window insets of the top app bar |
| colors | [TopAppBarColors](https://composables.com/jetpack-compose/androidx.compose.material3/material3/classes/TopAppBarColors/api.md) that will be used to resolve the colors used for this top app bar |
| scrollBehavior | a [TopAppBarScrollBehavior](https://composables.com/jetpack-compose/androidx.compose.material3/material3/interfaces/TopAppBarScrollBehavior/api.md) |
