interface AvatarProps {
    avatarColor?: "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10";
    avatarSize?: "small" | "medium" | "large";
    avatarUrl?: string;
    href?: string;
    isLoading?: boolean;
    onNavigate?: ((url) => void);
}

Properties

avatarColor?: "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10"

Avatar used if no image is provided; if not provided, no avatar shown

avatarSize?: "small" | "medium" | "large"

Avatar size

avatarUrl?: string

Avatar picture

href?: string

Optional href link for avatar

isLoading?: boolean

Show a temporary loading state (if this user has yet to finish loading)

onNavigate?: ((url) => void)

onNavigate callback for href

Type declaration

    • (url): void
    • onNavigate callback for href

      Parameters

      • url: string

      Returns void

Generated using TypeDoc