---
title: "FailureConfirmationDialogContent"
description: "FailureConfirmationDialogContent provides the content for a failure confirmation dialog with icon and an optional short curved text."
type: "component"
social_image: "/static/images/wear/WearComposeM3_FailureConfirmationDialogSample_CompositeImage.png"
lastmod: "2026-05-20T01:13:55.442783Z"
---
## API Reference

### FailureConfirmationDialogContent

> Source set: Android

```kotlin
@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](/jetpack-compose/androidx.wear.compose/compose-material3/functions/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](/jetpack-compose/androidx.wear.compose/compose-material3/classes/ConfirmationDialogColors) object for customizing the colors used in this [FailureConfirmationDialog](/jetpack-compose/androidx.wear.compose/compose-material3/components/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. |

## Code Examples
### FailureConfirmationDialogSample
```kotlin
@Composable
fun FailureConfirmationDialogSample() {
    var showConfirmation by remember { mutableStateOf(false) }
    Box(Modifier.fillMaxSize()) {
        FilledTonalButton(
            modifier = Modifier.align(Alignment.Center),
            onClick = { showConfirmation = true },
            label = { Text("Show Confirmation") },
        )
    }
    val text = "Failure"
    val style = ConfirmationDialogDefaults.curvedTextStyle
    FailureConfirmationDialog(
        visible = showConfirmation,
        onDismissRequest = { showConfirmation = false },
        curvedText = { confirmationDialogCurvedText(text, style) },
    )
}
```
### FailureConfirmationDialogWithGenericFailureIconSample
```kotlin
@Composable
fun FailureConfirmationDialogWithGenericFailureIconSample() {
    var showConfirmation by remember { mutableStateOf(false) }
    Box(Modifier.fillMaxSize()) {
        FilledTonalButton(
            modifier = Modifier.align(Alignment.Center),
            onClick = { showConfirmation = true },
            label = { Text("Show Confirmation") },
        )
    }
    val text = "Failure"
    val style = ConfirmationDialogDefaults.curvedTextStyle
    FailureConfirmationDialog(
        visible = showConfirmation,
        onDismissRequest = { showConfirmation = false },
        curvedText = { confirmationDialogCurvedText(text, style) },
        content = { ConfirmationDialogDefaults.GenericFailureIcon() },
    )
}
```
