KAvatar

fun KAvatar(modifier: Modifier = Modifier, size: KAvatarSize = KAvatarSize.Default, content: @Composable BoxScope.() -> Unit)(source)

Root avatar container — mirrors shadcn/ui Avatar.

Compose the child slots KAvatarImage, KAvatarFallback, KAvatarBadge inside a Box to reproduce the layered structure of the web component.

KAvatar(size = KAvatarSize.Lg) {
KAvatarImage(painter = rememberAsyncImagePainter(url), contentDescription = "Alice")
KAvatarFallback { Text("AL") }
KAvatarBadge()
}