Solidtype_heroui.AvatarHeroUI's Avatar: Kobalte's Image.Root, a <span>, with HeroUI's classes from Styles.Avatar, that shows its Image once it has loaded and its Fallback until then, or where it cannot.
<Avatar>
<Avatar.Image alt="Ada Lovelace" src="/ada.png" />
<Avatar.Fallback>"AL"</Avatar.Fallback>
</Avatar>A part is used inside an Avatar: elsewhere it raises Invalid_argument as it is made.
module Image : sig ... endThe image, a <img> Kobalte renders once it has loaded.
module Fallback : sig ... endWhat the avatar shows while its image loads, or where it cannot: initials, an icon. Its color is its own, else the avatar's.
module Props : sig ... endval make : Props.t -> Solidtype.Jsx.elementval component : Props.t Solidtype.Jsx.component