ErrorState

fun ErrorState(title: String, message: String, modifier: Modifier = Modifier, action: @Composable () -> Unit? = null, leadingContent: @Composable () -> Unit? = null)

A full-width, padded error placeholder for a pane that failed to load, with an optional action such as a Retry button and optional leadingContent such as an illustration. The title is an accessibility heading, and the error is announced politely when it appears.