FailureConfirmationDialogContent

FailureConfirmationDialogContent provides the content for a failure confirmation dialog with icon and an optional short curved text. This variation of confirmation dialog indicates an unsuccessful operation or action.

Android
@Composable
public fun FailureConfirmationDialogContent(
    curvedText: (CurvedScope.() -> Unit)?,
    modifier: Modifier = Modifier,
    colors: ConfirmationDialogColors = ConfirmationDialogDefaults.failureColors(),
    content: @Composable () -> Unit = { ConfirmationDialogDefaults.ConnectionFailureIcon() },
)

Parameters

curvedText A slot for displaying curved text content which will be shown along the bottom edge of the dialog. We recommend using confirmationDialogCurvedText for this parameter, which will give the default sweep angle and padding.
modifier Modifier to be applied to the confirmation content.
colors A ConfirmationDialogColors object for customizing the colors used in this FailureConfirmationDialog. will be adjusted by the accessibility manager according to the content displayed.
content A slot for displaying an icon inside the confirmation dialog, which can be animated. The default value is ConfirmationDialogDefaults.ConnectionFailureIcon, which shows a broken connection to the phone icon. Alternatively, provide ConfirmationDialogDefaults.GenericFailureIcon for a generic error icon.