JengaShelfCard

fun JengaShelfCard(title: String, modifier: Modifier = Modifier, imageUrl: String? = null, meta: String? = null, width: Dp = JengaShelfDefaults.CardWidth, aspectRatio: Float = JengaShelfDefaults.CardAspectRatio, onClick: () -> Unit? = null, overlayTag: @Composable () -> Unit? = null, fallback: Brush = JengaShelfDefaults.fallback, fallbackContent: @Composable BoxScope.() -> Unit? = null)(source)

A single card in a JengaImageShelf: an image slot (cropped, with a themed fallback and an optional overlayTag), a title, and an optional meta line. Generic and token-driven.

Parameters

title

the card title.

modifier

the Modifier for the card.

imageUrl

the image URL, or null/blank to show the fallback.

meta

an optional single meta line (e.g. "25 min · ≈540 kcal").

width

the card width.

aspectRatio

the image slot's width:height ratio.

onClick

optional tap handler.

overlayTag

optional small overlay in the image's top-start (e.g. a tag pill).

fallback

drawn in the image slot when there is no image and no fallbackContent.

fallbackContent

an optional composable fallback (e.g. a branded motif) drawn in the image slot when there is no image; when non-null it replaces the fallback brush.