VideoGrid

fun VideoGrid(videos: List<VideoPreviewUiState>, columns: GridCells, onVideoClick: (String) -> Unit, modifier: Modifier = Modifier, scrollState: LazyGridState = rememberLazyGridState(), colors: VideoColors = VideoDefault.videoColors())

Displays a grid of video previews.

This composable lays out VideoPreviewUiState items in a 2-column vertical grid, with configurable styling and click handling.

Parameters

videos

the list of video items to display in the grid

columns

the GridCells configuration defining how many columns are displayed

modifier

optional Modifier to be applied to the grid container

scrollState

the LazyGridState controlling and reflecting the scroll state

colors

color configuration applied to each VideoPreviewCard

onVideoClick

callback invoked when a video is tapped, with the video id