Package-level declarations

Functions

Link copied to clipboard
@Composable
fun ConfirmationDialog(width: Dp = 450.dp, height: Dp = 230.dp, resizable: Boolean = false, title: String = "Confirmation", message: String = "Please confirm to proceed", icon: Painter? = null, iconSize: DpSize = DpSize(64.dp, 64.dp), iconTint: Color = MaterialTheme.colorScheme.primary, confirmButtonText: String = "OK", cancelButtonText: String = "Cancel", onConfirm: () -> Unit, onCancel: () -> Unit, onClose: () -> Unit = onCancel, content: @Composable () -> Unit = { Text( text = message, style = MaterialTheme.typography.bodyLarge, textAlign = TextAlign.Center, modifier = Modifier.fillMaxWidth() ) })

Displays a modal dialog to request user confirmation for an action.

Link copied to clipboard
@Composable
fun ConfirmationDialogSample()

A sample composable function demonstrating the usage of the ConfirmationDialog.