Dialog

fun Dialog(state: DialogState, title: @Composable () -> Unit? = null, icon: @Composable () -> Unit? = null, style: ComposeDialogStyle = DialogDefaults.defaultDialogStyle(), buttons: DialogButtons = DialogDefaults.buttons(), options: DialogOptions = DialogDefaults.options(), onEvent: (event: DialogEvent) -> Unit = {}, content: @Composable () -> Unit)

Shows a dialog containing some arbitrary content

Parameters

state

the DialogState of the dialog

title

the optional title of the dialog

icon

the optional icon of the dialog

options

the DialogOptions of the dialog - use DialogDefaults.options here

onEvent

the callback for all DialogEvent - this can be a button click DialogEvent.Button or the dismiss information DialogEvent.Dismissed

content

the content of this dialog