hazeSource

fun Modifier.hazeSource(state: HazeState, zIndex: Float = 0.0f, key: Any? = null): Modifier

Captures background content for hazeEffect child nodes, which will be drawn with a blur in a 'glassmorphism' style.

When running on Android 12 devices (and newer), usage of this API renders the corresponding composable into a separate graphics layer. On older Android platforms, a translucent scrim will be drawn instead.