ChoiceContent

sealed class ChoiceContent

Content interface for Choice.

CenterContent class is an interface to define the content of the Choice component. Regular variant is the default content for Choice and supports all content such as title, caption, leading and trailing content. Custom variant is a special content type for Choice and supports a generic composable.

Inheritors

Types

Link copied to clipboard
data class Custom(val content: @Composable () -> Unit) : ChoiceContent
Link copied to clipboard
data class Regular(val title: String, val caption: String? = null) : ChoiceContent