euv_ui/component/avatar/view/struct.rs
1use super::*;
2
3/// Props for the `euv_avatar` component.
4///
5/// Defines the strongly-typed interface for a user or entity avatar that
6/// renders either an image or a text fallback.
7#[derive(Clone, CustomDebug, Default)]
8pub struct EuvAvatarProps {
9 /// The image source URL. When empty the `initials` text is rendered instead.
10 pub src: &'static str,
11 /// The alternative text describing the avatar image.
12 pub alt: &'static str,
13 /// The initials rendered as the text fallback when `src` is empty.
14 pub initials: &'static str,
15 /// The square size of the avatar.
16 pub size: EuvAvatarSize,
17 /// Whether to render the avatar as a sharp square instead of a circle.
18 pub square: Signal<bool>,
19}