<h2 id="spatialpopup-alignment-offset-ondismissrequest-elevation-properties-content">SpatialPopup</h2>

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

```kotlin
@Composable
public fun SpatialPopup(
    alignment: Alignment = Alignment.TopStart,
    offset: IntOffset = IntOffset(0, 0),
    onDismissRequest: (() -> Unit)? = null,
    elevation: Dp = SpatialElevationLevel.Level3,
    properties: PopupProperties = PopupProperties(),
    content: @Composable () -> Unit,
)
```

A composable that creates a panel in 3D space to hoist Popup based composables.

#### Parameters

| | |
| --- | --- |
| alignment | the alignment of the popup relative to its parent. |
| offset | An offset from the original aligned position of the popup. Offset respects the Ltr/Rtl context, thus in Ltr it will be added to the original aligned position and in Rtl it will be subtracted from it. |
| onDismissRequest | callback invoked when the user requests to dismiss the popup (e.g., by clicking outside). |
| elevation | the elevation value of the SpatialPopUp. |
| properties | [PopupProperties](/jetpack-compose/androidx.compose.ui/ui/classes/PopupProperties) configuration properties for further customization of this popup's behavior. |
| content | the composable content to be displayed within the popup. |