background

fun Modifier.background(color: Color?, vararg backgrounds: Background.Repeatable): Modifier

Sets the background color and other background properties.

Parameters

color

The color to be used as the background color, converted to RGBA.

backgrounds

Other background properties to be applied.