Package-level declarations
Individual pieces — a document row and its list, a video card and its grid — for building a screen the SDK does not already provide. Unlike the screens, these are stateless: you pass the data in and handle the clicks yourself.
Functions
Link copied to clipboard
fun Document(state: DocumentUiState, onClick: () -> Unit, modifier: Modifier = Modifier, onMoreClick: () -> Unit = {}, colors: DocumentColors = DocumentDefault.documentColors())
A document row: thumbnail, title, description and date, with an overflow action.
Link copied to clipboard
fun DocumentList(documents: List<DocumentUiState>, onDocumentClick: (String) -> Unit, onMoreClick: (String) -> Unit, modifier: Modifier = Modifier, scrollState: LazyListState = rememberLazyListState(), colors: DocumentColors = DocumentDefault.documentColors())
A scrolling column of Document rows.
Link copied to clipboard
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.
Link copied to clipboard
fun VideoPreviewCard(item: VideoPreviewUiState, modifier: Modifier = Modifier, colors: VideoColors = VideoDefault.videoColors(), onClick: (VideoPreviewUiState) -> Unit = {})
Displays a clickable preview card for a video item.