Docs
Avatar

Avatar

An image element with a fallback for representing the user.

@shadcn

Usage

import shadcn.ui.components.Avatar
import shadcn.ui.components.AvatarFallback
import shadcn.ui.components.AvatarImage
Avatar {
    AvatarImage {
        src = "https://github.com/shadcn.png"
        alt = "@shadcn"
    }
    AvatarFallback {
        +"CN"
    }
}