- Copy Demo

RS
Installation
You can run either of the following commands:
# cargo install ui-cli --forceui add demo_avatarui add avatar
Update the imports to match your project setup.
Usage
use crate::components::ui::avatar::{
Avatar,
AvatarImage,
AvatarFallback,
};
<Avatar>
<AvatarImage attr:src="/path/to/image.png" attr:alt="@username" />
<AvatarFallback>UN</AvatarFallback>
</Avatar>