UNPKG

@esri/calcite-components

Version:

Web Components for Esri's Calcite Design System.

28 lines (27 loc) 982 B
import { Scale } from "../interfaces"; export declare class Avatar { el: HTMLCalciteAvatarElement; /** Specifies the size of the component. */ scale: Scale; /** Specifies the `src` to an image (remember to add a token if the user is private). */ thumbnail: string; /** Specifies the full name of the user. When `label` and `thumbnail` are not defined, specifies the accessible name for the component. */ fullName: string; /** Specifies the username of the user. */ username: string; /** Specifies the unique id of the user. */ userId: string; /** Specifies alternative text when `thumbnail` is defined, otherwise specifies an accessible label.*/ label: string; render(): any; thumbnailFailedToLoad: boolean; private determineContent; /** * Generate a valid background color that is consistent and unique to this user */ private generateFillColor; /** * Use fullname or username to generate initials */ private generateInitials; }