Skip to Content
Data & Media@hacline/ui/avatar

Avatar

Display an image with fallback content while loading or unavailable.

Usage

Provide each avatar with an accessible name. AvatarImage is shown once the image loads, and AvatarFallback appears when no image is available. This example uses a local docs asset that you can replace with your own.

LKMT

Stacked Collaborator Avatars

Place each avatar inside a member list. Even when displaying only initials, accessible names distinguish every collaborator.

  • AL
  • NZ
  • MC

Parts

PartDescription
AvatarFallback
Shown while there's no loaded image, after its delay.
AvatarImage
A real <img>, hidden until it loads. Every image attribute passes through, like crossOrigin, referrerPolicy, srcSet and sizes.

Props

Prop

Type

View UI SDK parts and state attributes.