haze Child
Mark this composable as being a Haze child composable.
This will update the given HazeState whenever the layout is placed, enabling any layouts using Modifier.haze to blur any content behind the host composable.
Parameters
block on HazeChildScope where you define the styling and visual properties.
Deprecated
Shape clipping is no longer necessary with Haze. You can use `Modifier.clip` or similar.
Replace with
clip(shape).hazeChild(state) { applyStyle(style) }Mark this composable as being a Haze child composable.
This will update the given HazeState whenever the layout is placed, enabling any layouts using Modifier.haze to blur any content behind the host composable.
Parameters
The shape of the content. This will affect the the bounds and outline of the content. Please be aware that using non-rectangular shapes has an effect on performance, since we need to use path clipping.