pub struct EuvAvatarProps {
pub src: &'static str,
pub alt: &'static str,
pub initials: &'static str,
pub size: EuvAvatarSize,
pub square: Signal<bool>,
}Expand description
Props for the euv_avatar component.
Defines the strongly-typed interface for a user or entity avatar that renders either an image or a text fallback.
Fields§
§src: &'static strThe image source URL. When empty the initials text is rendered instead.
alt: &'static strThe alternative text describing the avatar image.
initials: &'static strThe initials rendered as the text fallback when src is empty.
size: EuvAvatarSizeThe square size of the avatar.
square: Signal<bool>Whether to render the avatar as a sharp square instead of a circle.
Trait Implementations§
Source§impl Clone for EuvAvatarProps
impl Clone for EuvAvatarProps
Source§impl Debug for EuvAvatarProps
impl Debug for EuvAvatarProps
Auto Trait Implementations§
impl Freeze for EuvAvatarProps
impl RefUnwindSafe for EuvAvatarProps
impl Send for EuvAvatarProps
impl Sync for EuvAvatarProps
impl Unpin for EuvAvatarProps
impl UnsafeUnpin for EuvAvatarProps
impl UnwindSafe for EuvAvatarProps
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more