ScreenPlaceholder

fun ScreenPlaceholder(icon: Painter, text: String, modifier: Modifier = Modifier, iconContentDescription: String? = null, iconTint: Color = MaterialTheme.colorScheme.onBackground.copy(alpha = SendbirdOpacity.LowOpacity), action: @Composable () -> Unit = {})

Represents a screen placeholder. This contains an icon and a text in the center of the screen.

Since

1.0.0-beta.1

Parameters

icon

The icon to be displayed.

text

The text to be displayed.

modifier

The modifier to be applied to the view.

iconContentDescription

The content description for the icon. Defaults to null.

iconTint

The tint color of the icon. Defaults to MaterialTheme.colorScheme.onBackground with SendbirdOpacity.LowOpacity.

action

The handler for when the action is clicked.