MaterialDialog

@Composable
fun MaterialDialog(dialogState: MaterialDialogState = rememberMaterialDialogState(), properties: DialogProperties = DialogProperties(), backgroundColor: Color = MaterialTheme.colors.surface, shape: Shape = MaterialTheme.shapes.medium, border: BorderStroke? = null, elevation: Dp = 24.dp, autoDismiss: Boolean = true, onCloseRequest: (MaterialDialogState) -> Unit = { it.hide() }, buttons: @Composable MaterialDialogButtons.() -> Unit = {}, content: @Composable MaterialDialogScope.() -> Unit)

Builds a dialog with the given content

Parameters

dialogState

state of the dialog

properties

properties of the compose dialog

backgroundColor

background color of the dialog

shape

shape of the dialog and components used in the dialog

border

border stoke of the dialog

elevation

elevation of the dialog

autoDismiss

when true the dialog is hidden on any button press

onCloseRequest

function to be executed when user clicks outside dialog

buttons

the buttons layout of the dialog

content

the body content of the dialog