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 optional 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. Leave it out to hide the control.

colors

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