ChoiceContent

data class ChoiceContent(val title: String? = null, val caption: String? = null, val addon: @Composable () -> Unit? = null, val expandingText: String? = null)(source)

Content interface for Choice.

Constructors

Link copied to clipboard
constructor(title: String? = null, caption: String? = null, addon: @Composable () -> Unit? = null, expandingText: String? = null)

Properties

Link copied to clipboard
val addon: @Composable () -> Unit?

is an optional custom content slot to be displayed in the Choice. This can be used either as a stand alone which occupies the entire Choice component, or in conjunction with title and caption.

Link copied to clipboard

is optional content to provide additional information about the selected value.

Link copied to clipboard

is optional content that is displayed when the Choice is selected. This content is displayed below the main content.

Link copied to clipboard

is the optional main content of the Choice, and should be used to represent the value being selected.