---
title: "Dialog"
description: "A base dialog component used by `AlertDialog` and `ConfirmationDialog` variations. This dialog
provides a full-screen experience with custom entry/exit animations."
type: "component"
---

<div class='type'>Composable Component</div>



A base dialog component used by `AlertDialog` and `ConfirmationDialog` variations. This dialog
provides a full-screen experience with custom entry/exit animations.

<a id='references'></a>

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


```kotlin
@Composable
public fun Dialog(
    visible: Boolean,
    onDismissRequest: () -> Unit,
    modifier: Modifier = Modifier,
    properties: DialogProperties = DialogProperties(),
    content: @Composable () -> Unit,
)
```


#### Parameters

| | |
| --- | --- |
| visible | A boolean value that determines whether the dialog should be displayed. |
| onDismissRequest | A lambda function to be called when the dialog is dismissed by swiping right. Implementation of this lambda must remove the dialog from the composition hierarchy e.g. by setting `visible` to false. |
| modifier | Modifier to be applied to the dialog content. |
| properties | An optional `DialogProperties` object for configuring the dialog's behavior. |
| content | A composable function that defines the content of the dialog. |






