Skip to content

Avatar

A picture of a person or their initials.

Example

Ada Lovelace
Show code
use zeyn::prelude::*;
use zeyn::ui::AvatarSize;

pub fn overview(_ctx: &Ctx) -> Node {
    Row::new()
        .compact()
        .col(Avatar::new("Ada Lovelace").image(crate::data::picture(3)))
        .col(Avatar::new("Alan Turing"))
        .col(Avatar::new("İlknur Şahin"))
        .into()
}