howdy/ui/avatar

Avatars: a small round picture of a person, with initials when there is no picture or it fails to load.

avatar.avatar(src: user.photo_url, alt: "", initials: "AL")
avatar.initials("AL")

Give the image an alt describing the person, or "" when their name is already written beside it.

Values

pub fn avatar(
  src src: String,
  alt alt: String,
  initials initials: String,
) -> element.Element(msg)
pub fn avatar_class() -> css.Class
pub fn classes() -> List(css.Class)

Every class this module uses, for howdy/ui/export.

pub fn image_class() -> css.Class
pub fn initials(initials: String) -> element.Element(msg)

An avatar of initials alone.

✨ Search Document