JengaImage

fun JengaImage(url: String?, contentDescription: String?, modifier: Modifier = Modifier, shape: Shape = JengaImageDefaults.shape, fit: JengaImageFit = JengaImageFit.Cover, placeholderColor: Color = JengaImageDefaults.placeholderColor)(source)

An async image loaded from a URL, clipped to a Jenga shape over a themed placeholder.

Backed by Coil; the consuming app provides the network engine used to fetch it. When url is null or blank only the placeholder shows, so content with no image (a dish without a photo yet) degrades gracefully instead of breaking the layout.

Parameters

url

the image URL, or null for none.

contentDescription

accessibility description, or null if the image is decorative.

modifier

the Modifier for this image; set a size on it.

shape

the clip shape; defaults to JengaImageDefaults.shape.

fit

how the image fills its bounds; see JengaImageFit.

placeholderColor

the fill shown while loading or when there is no image.