Document

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.

Stateless — it renders state and reports taps. Use DocumentList to lay several of them out in a scrolling column.

Parameters

state

what to render.

onClick

the row was tapped — open the document.

modifier

the Modifier to apply to the row.

onMoreClick

the overflow control was tapped. The control is drawn either way: leave this out and tapping it does nothing.

colors

the colors to draw with. Defaults to the ambient CgsTheme.