innerShadow

fun Modifier.innerShadow(shape: Shape, color: Color = Color.Black, blur: Dp = 4.dp, offsetY: Dp = 2.dp, offsetX: Dp = 2.dp, spread: Dp = 0.dp): Modifier

Adds an inner shadow effect to the content.

Return

A modified Modifier with the inner shadow effect applied.

Parameters

shape

The shape of the shadow.

color

The color of the shadow.

blur

The blur radius of the shadow.

offsetY

The shadow offset along the Y-axis.

offsetX

The shadow offset along the X-axis.

spread

The amount to expand the shadow beyond its size.