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.FailureIcon() },
)
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. Defaults to ConfirmationDialogDefaults.FailureIcon . |
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