ChoiceLeadingContent

Leading content for Choice: Icon, Payment Logo, or Image

All choice sizes supports leading content. Please note that payment logo will use the small variant in the small size choice, and medium variant in the medium and large size choices.

Inheritors

Types

Link copied to clipboard
data class Custom(val modifier: Modifier = Modifier, val size: ChoiceImageSize = ChoiceImageSize.Small, val alignment: ChoiceContentAlignment = Center, val content: @Composable BoxScope.() -> Unit) : ChoiceLeadingContent

Custom Image leading content for Choice.

Link copied to clipboard
data class Icon(@DrawableRes val resource: Int, val contentDescription: String? = null, val alignment: ChoiceContentAlignment = Center) : ChoiceLeadingContent

Icon leading content for Choice.

Link copied to clipboard
data class Image(val painter: Painter, val contentDescription: String?, val alignment: ChoiceContentAlignment = Center, val size: ChoiceImageSize = ChoiceImageSize.Small) : ChoiceLeadingContent

Image leading content for Choice.

Link copied to clipboard

No leading content for Choice.

Link copied to clipboard
data class PaymentLogo(val painter: Painter, val contentDescription: String? = null, val alignment: ChoiceContentAlignment = Center) : ChoiceLeadingContent

Payment logo leading content for Choice.

Properties

Link copied to clipboard

Alignment of the leading content. Default is ChoiceContentAlignment.Center.