ConfirmationDialogContent

Composable Component

This overload of ConfirmationDialogContent provides the content for a ConfirmationDialog with an icon and optional very short curvedText. The length of the curved text should be very short and should not exceed 1-2 words. If a longer text is required, then the alternative ConfirmationDialog overload with slot for linear text should be used instead.

Android
@Composable
public fun ConfirmationDialogContent(
    curvedText: (CurvedScope.() -> Unit)?,
    modifier: Modifier = Modifier,
    colors: ConfirmationDialogColors = ConfirmationDialogDefaults.colors(),
    content: @Composable () -> Unit,
): Unit

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 ConfirmationDialog.
contentA slot for displaying an icon inside the confirmation dialog. It's recommended to set its size to ConfirmationDialogDefaults.IconSize
Android
@Composable
public fun ConfirmationDialogContent(
    text: @Composable (ColumnScope.() -> Unit)?,
    modifier: Modifier = Modifier,
    colors: ConfirmationDialogColors = ConfirmationDialogDefaults.colors(),
    content: @Composable () -> Unit,
)

Parameters

textA slot for displaying text below the icon. It should not exceed 3 lines.
modifierModifier to be applied to the confirmation content.
colorsA ConfirmationDialogColors object for customizing the colors used in this ConfirmationDialog.
contentA slot for displaying an icon inside the confirmation dialog. It's recommended to set its size to ConfirmationDialogDefaults.IconSize