-category-row.md 2.4 KB

//tvlib/org.mjdev.tvlib.ui.components.tv/CategoryRow

CategoryRow

[androidJvm]

@Composable

fun CategoryRow(title: Any? = "category", items: List<Any?> = listOf(Unit, Unit, Unit), rowState: TvLazyListState = rememberTvLazyListState(), padding: Dp = 8.dp, cardWidth: Dp = computeCardWidth(), contentScale: ContentScale = ContentScale.Crop, backgroundColor: Color = Color.DarkGray.copy(alpha = 0.3f), roundCornerSize: Dp = 8.dp, backgroundShape: Shape = RoundedCornerShape(roundCornerSize), onItemFocus: (item: Any?, fromUser: Boolean) -> Unit? = null, onItemClick: (item: Any?) -> Unit? = null, contentOfItem: @Composable(item: Any?) -> Unit = { item ->

    PhotoCard(
        item = item,
        contentScale = contentScale,
        cardWidth = cardWidth,
        onClick = onItemClick,
        onFocus = onItemFocus
    )
})