color

fun PlaceholderDefaults.color(backgroundColor: Color = MaterialTheme.colorScheme.surface, contentColor: Color = contentColorFor(backgroundColor), contentAlpha: Float = 0.1f): Color(source)

Returns the value used as the the color parameter value on Modifier.placeholder.

Parameters

backgroundColor

The current background color of the layout. Defaults to MaterialTheme.colorScheme.surface.

contentColor

The content color to be used on top of backgroundColor.

contentAlpha

The alpha component to set on contentColor when compositing the color on top of backgroundColor. Defaults to 0.1f.