SpatialPopup
Android
@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 configuration properties for further customization of this popup's behavior. |
| content | the composable content to be displayed within the popup. |