FailureConfirmationDialogContent

`FailureConfirmationDialogContent` provides the content for a failure confirmation dialog with

FailureConfirmationDialogContent

Composable Component

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

curvedTextA 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.
modifierModifier to be applied to the confirmation content.
colorsA ConfirmationDialogColors object for customizing the colors used in this FailureConfirmationDialog. will be adjusted by the accessibility manager according to the content displayed.
contentA 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.

Create your own Component Library

Material Components are meant to be used as is and they do not allow customizations. To build your own Jetpack Compose component library use Compose Unstyled