iris-ds
Version:
Joveo iris libray
21 lines (20 loc) • 528 B
TypeScript
import { OnChanges } from '@angular/core';
export declare class AvatarComponent implements OnChanges {
src: string;
name: string;
backgroundType: 'solid' | 'subtle';
size: 'small' | 'medium' | 'large';
imgStyles: {
[type: string]: string;
};
nameStyles: {
[type: string]: string;
};
alt: string;
bgColors: string[];
colorCssClass: string;
constructor();
ngOnChanges(): void;
createInitials(name: string): string;
getBackground(name: string): string;
}