ChoiceContent

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

Content interface for Choice.

title is the optional main content of the Choice, and should be used to represent the value being selected. caption is optional content to provide additional information about the selected value. addon 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. expandingText is optional content that is displayed when the Choice is selected. This content is displayed below the main content.

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? = null
Link copied to clipboard
val caption: String? = null
Link copied to clipboard
val expandingText: String? = null
Link copied to clipboard
val title: String? = null