AvatarVariant

sealed class AvatarVariant

Sealed class that represents the different display types in AvatarVariant as well as the necessary properties for each type.

Icon Contains content description string for Icon variant. Text Contains text string to display initials of user. Image Contains open content composable to pass an image using desired method, and content description string to describe said image.

Inheritors

Types

Link copied to clipboard
data object Icon : AvatarVariant
Link copied to clipboard
data class Image(val content: @Composable () -> Unit) : AvatarVariant
Link copied to clipboard
data class Text(val text: String) : AvatarVariant