hazeEffect

inline fun Modifier.hazeEffect(state: HazeState, style: HazeBlurStyle, crossinline block: HazeEffectScope.() -> Unit = {}): Modifier

Deprecated

Style parameter moved to blurEffect {} block. See migration guide.

Replace with

import dev.chrisbanes.haze.hazeEffect
import dev.chrisbanes.haze.blur.blurEffect
hazeEffect(state) { blurEffect { style = style } }

Migration helper overload that accepts a style parameter directly.

In v1, you could write:

Modifier.hazeEffect(state, style = HazeMaterials.thin())

In v2, this becomes:

Modifier.hazeEffect(state) {
blurEffect {
style = HazeMaterials.thin()
}
}

This overload supports the v1 pattern during migration.