DocumentList
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.
Stateless and unpaginated: it renders exactly the list you pass. Fetching and paging are yours — drive them from a PaginatedResource and hand the items down, or use CorporateMediaScreen, which does all of it for you.
Parameters
documents
the rows to render, in order.
onDocumentClick
a row was tapped, identified by its DocumentUiState.id.
onMoreClick
a row's overflow control was tapped, identified by its DocumentUiState.id.
modifier
the Modifier to apply to the list.
scrollState
the list's scroll state. Hoist it to read the scroll position or to drive paging as the user nears the end.
colors
the colors the rows draw with. Defaults to the ambient CgsTheme.