<h2 id="spatialdialog-ondismissrequest-properties-content">SpatialDialog</h2>

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

```kotlin
@Composable
public fun SpatialDialog(
    onDismissRequest: () -> Unit,
    properties: SpatialDialogProperties = SpatialDialogProperties(),
    content: @Composable () -> Unit,
)
```

[SpatialDialog](/jetpack-compose/androidx.xr.compose/compose/composable-functions/SpatialDialog) is a dialog that is elevated above the activity.

When spatial dialogs are displayed the dialog appears on top of the content at the base elevation
level.

In non-spatialized environments, a standard Compose Dialog is utilized to display the content.

#### Parameters

| | |
| --- | --- |
| onDismissRequest | a callback to be invoked when the dialog should be dismissed. |
| properties | the dialog properties. |
| content | the content of the dialog. |