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



Dialogs provide important prompts in a user flow. They can require an action, communicate
information, or help users accomplish a task.

<img loading='lazy' class='hero-img' alt='Basic dialog image' src='/static/images/material3/basic-dialog.png'>

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



<h2 id="basicalertdialog-ondismissrequest-modifier-properties-content">BasicAlertDialog</h2>

<div class='sourceset sourceset-common'>Common</div>


```kotlin
@ExperimentalMaterial3Api
@Composable
fun BasicAlertDialog(
    onDismissRequest: () -> Unit,
    modifier: Modifier = Modifier,
    properties: DialogProperties = DialogProperties(),
    content: @Composable () -> Unit,
)
```


#### Parameters

| | |
| --- | --- |
| onDismissRequest | called when the user tries to dismiss the Dialog by clicking outside or pressing the back button. This is not called when the dismiss button is clicked. |
| modifier | the `Modifier` to be applied to this dialog's content. |
| properties | typically platform specific properties to further configure the dialog. |
| content | the content of the dialog |