ng-hub-ui-avatar
Version:
A powerful, flexible, and standalone Angular avatar component that generates and fetches user avatars from multiple sources including social media, Gravatar, or custom images with intelligent fallback system
14 lines (13 loc) • 381 B
TypeScript
import { Source } from './source';
import { AvatarSource } from './avatar-source.enum';
/**
* Gravatar source implementation.
* Fetch avatar source based on gravatar email
*/
export declare class Gravatar implements Source {
value: string;
readonly sourceType: AvatarSource;
sourceId: string;
constructor(value: string);
getAvatar(size: number): string;
}