AvatarVariant

sealed class AvatarVariant

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

  • Icon Uses the SkapaIcons.Person icon as a representation of a profile. Depending on the size of the Avatar, the icon will be either small or regular.

  • 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